Skip to content

Instantly share code, notes, and snippets.

@eugenp
Created October 8, 2011 10:54
Show Gist options
  • Select an option

  • Save eugenp/1272135 to your computer and use it in GitHub Desktop.

Select an option

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

eugenp commented Feb 14, 2012

Copy link
Copy Markdown
Author

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