public class PostRepositoryJpa extends JpaRepository<Post,java.lang.Long> implements PostRepository
DEFAULT_PAGE_SIZE, LOGGER
Constructor and Description |
---|
PostRepositoryJpa() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Post> |
paginate(java.util.Optional<java.lang.Integer> page) |
protected java.lang.String |
persistenceUnitName()
Derived classes should implement this method to return the name of the
persistence unit
|
add, all, close, create, delete, deleteById, entityManager, entityManagerFactory, findById, first, first, iterator, iterator, last, page, pageWithFiltering, read, save, size, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected java.lang.String persistenceUnitName()
JpaRepository
persistenceUnitName
in class JpaRepository<Post,java.lang.Long>
public java.util.List<Post> paginate(java.util.Optional<java.lang.Integer> page)
paginate
in interface PostRepository