Last active
December 26, 2015 15:19
-
-
Save ggdio/7172326 to your computer and use it in GitHub Desktop.
Service class for JPA
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
package br.com.ggdio.gist; | |
public abstract class Service<T> { | |
private final Dao<T> dao; | |
public Service(Dao<T> dao) { | |
super(); | |
this.dao = dao; | |
} | |
protected Dao<T> getDao() { | |
return dao; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment