@Transactional public class RoleDAO extends Object
User| 构造器和说明 |
|---|
RoleDAO() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
delete(Role persistentInstance) |
List |
findAll() |
List<Role> |
findByExample(Role instance) |
Role |
findById(Integer id) |
List |
findByProperty(String propertyName,
Object value) |
static RoleDAO |
getFromApplicationContext(org.springframework.context.ApplicationContext ctx) |
void |
save(Role transientInstance) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public void save(Role transientInstance)
public void delete(Role persistentInstance)
public List findAll()
public static RoleDAO getFromApplicationContext(org.springframework.context.ApplicationContext ctx)