Skip to content

Instantly share code, notes, and snippets.

@ggdio
Last active December 26, 2015 15:19
Show Gist options
  • Save ggdio/7172326 to your computer and use it in GitHub Desktop.
Save ggdio/7172326 to your computer and use it in GitHub Desktop.
Service class for JPA
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