Skip to content

Instantly share code, notes, and snippets.

@eugenp
Created October 8, 2011 10:54
Show Gist options
  • Save eugenp/1272135 to your computer and use it in GitHub Desktop.
Save eugenp/1272135 to your computer and use it in GitHub Desktop.
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
Copy link
Author

eugenp commented Feb 14, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment