Package br.com.caelum.stella.hibernate.example

Examples of br.com.caelum.stella.hibernate.example.ModeloDAO.listAll()


  private static void listaModelosPersistidos() {
    Session session = HibernateUtil.getSessionFactory().openSession();
    ModeloDAO dao = new ModeloDAO(session);
    System.out.println("Listagem de modelos persistidos:");
    for (Modelo modelo : dao.listAll()) {
      System.out.println("\t" + modelo);
    }
  }

  private static void save(Modelo modelo) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.