T - @Deprecated public class BasicRepositoryImpl<T> extends Object implements BasicRepository<T>
Basic implementation for a imple Hibernate based repository. Deprecated, favour the use of Spring Data JPA repositories instead.
| Constructor and Description |
|---|
BasicRepositoryImpl()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
create(T object)
Deprecated.
|
void |
delete(T object)
Deprecated.
|
protected org.hibernate.Criteria |
distinct()
Deprecated.
Creates a query for the distinct root entity.
|
List<T> |
findAll()
Deprecated.
|
List<T> |
findAll(Collection<Long> ids)
Deprecated.
|
T |
getById(long id)
Deprecated.
|
Class<T> |
getEntityClass()
Deprecated.
|
protected org.hibernate.Criteria |
ordered(org.hibernate.Criteria criteria)
Deprecated.
Adds the default order to the criteria.
|
protected org.hibernate.Criteria |
orderedDistinct()
Deprecated.
Creates a query for the distinct root entity with the default order applied.
|
protected org.hibernate.Session |
session()
Deprecated.
|
void |
update(T object)
Deprecated.
|
public Class<T> getEntityClass()
getEntityClass in interface BasicRepository<T>protected org.hibernate.Criteria distinct()
protected org.hibernate.Criteria orderedDistinct()
protected org.hibernate.Session session()
protected org.hibernate.Criteria ordered(org.hibernate.Criteria criteria)
@Transactional(readOnly=true) public T getById(long id)
getById in interface BasicRepository<T>@Transactional(readOnly=true) public List<T> findAll()
findAll in interface BasicRepository<T>@Transactional(readOnly=true) public List<T> findAll(Collection<Long> ids)
findAll in interface BasicRepository<T>@Transactional public void create(T object)
create in interface BasicRepository<T>@Transactional public void update(T object)
update in interface BasicRepository<T>@Transactional public void delete(T object)
delete in interface BasicRepository<T>Copyright © 2020. All rights reserved.