br.com.caelum.stella.hibernate.example
Class ModeloDAO
java.lang.Object
br.com.caelum.stella.hibernate.example.ModeloDAO
public class ModeloDAO
- extends Object
|
Constructor Summary |
ModeloDAO(org.hibernate.Session session)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModeloDAO
public ModeloDAO(org.hibernate.Session session)
load
public Modelo load(Serializable id)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
persist
public void persist(Modelo modelo)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
save
public Serializable save(Modelo modelo)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
update
public void update(Modelo modelo)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
listAll
public List<Modelo> listAll()
Copyright © 2009 Caelum. All Rights Reserved.