Package projectplayground.repositories
Class BaseRepository<E extends BaseEntity>
java.lang.Object
projectplayground.repositories.BaseRepository<E>
public abstract class BaseRepository<E extends BaseEntity>
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected javax.persistence.EntityManager
entityManager
private java.lang.Class<E>
type
-
Constructor Summary
Constructors Constructor Description BaseRepository()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
entityManager
protected final javax.persistence.EntityManager entityManager -
type
-
-
Constructor Details
-
BaseRepository
public BaseRepository()
-
-
Method Details
-
save
-
findBy
-
findAll
-
delete
-
deleteAll
public void deleteAll()
-