Created
October 8, 2011 10:54
-
-
Save eugenp/1272135 to your computer and use it in GitHub Desktop.
Testing the Service Layer - the DAO layer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Repository | |
public class FooDAO extends HibernateDaoSupport implements IFooDAO{ | |
public Long create( final Foo entity ){ | |
Preconditions.checkNotNull( entity ); | |
return (Long) this.getHibernateTemplate().save( entity ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist is used in:
http://www.baeldung.com/2011/10/02/testing-the-service-layer/