Skip to content

Instantly share code, notes, and snippets.

@eugenp eugenp/FooDAO.java
Created Oct 8, 2011

Embed
What would you like to do?
Testing the Service Layer - the DAO layer
@Repository
public class FooDAO extends HibernateDaoSupport implements IFooDAO{
public Long create( final Foo entity ){
Preconditions.checkNotNull( entity );
return (Long) this.getHibernateTemplate().save( entity );
}
}
@eugenp

This comment has been minimized.

Copy link
Owner Author

commented Feb 14, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.