public abstract class HibernateCommonDao<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
persistentClass |
protected org.hibernate.SessionFactory |
sessionFactory |
| Constructor and Description |
|---|
HibernateCommonDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(T t)
Persists the object t
|
void |
delete(long id)
Delete the object with id
|
void |
delete(T t)
Delete the object
|
Optional<T> |
get(long id)
Get the object with id
|
void |
save(T t)
Saves any changes made to object t
|
public void create(T t)
t - public void save(T t)
t - public Optional<T> get(long id)
id - public void delete(T t)
t - public void delete(long id)
id - Copyright © 2003–2022 Sakai Project. All rights reserved.