T - Zmapowana klasaPK - Typ klucza głównegopublic class CustomService<T,PK> extends Object
| Constructor and Description | 
|---|
| CustomService(Class<T> type) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | delete(Iterable<PK> ids) | 
| void | delete(T entity) | 
| List<T> | findByCriteria(org.hibernate.criterion.DetachedCriteria dc) | 
| List<T> | findByCriteria(org.hibernate.criterion.DetachedCriteria dc,
              int start,
              int limit) | 
| T | get(PK id) | 
| T | get(PK id,
   String... joins) | 
| List<T> | getAll() | 
| List<T> | getAll(int start,
      int limit) | 
| T | getByField(String field,
          Object value,
          String... joins) | 
| org.hibernate.Session | getSession()Ułatwia pobranie sesji | 
| org.hibernate.SessionFactory | getSessionFactory() | 
| PK | save(T entity) | 
| void | setSessionFactory(org.hibernate.SessionFactory sessionFactory) | 
| void | update(T entity) | 
@Transactional public void update(T entity)
@Transactional public void delete(T entity)
public org.hibernate.SessionFactory getSessionFactory()
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public org.hibernate.Session getSession()
@Transactional public List<T> findByCriteria(org.hibernate.criterion.DetachedCriteria dc)
@Transactional public List<T> findByCriteria(org.hibernate.criterion.DetachedCriteria dc, int start, int limit)
Copyright © 2019 Suncode. All rights reserved.