Package br.com.caelum.vraptor.util.jpa

Examples of br.com.caelum.vraptor.util.jpa.EntityManagerFactoryCreator


public class PreencheBanco {

  // ALUNO: Não apague essa classe
  public static void main(String[] args) {
    EntityManagerFactoryCreator creator = new EntityManagerFactoryCreator();
    creator.create();
    EntityManagerCreator managerCreator = new EntityManagerCreator(creator.getInstance());
    managerCreator.create();
    EntityManager manager = managerCreator.getInstance();

    manager.getTransaction().begin();
    manager.createQuery("delete from Sessao").executeUpdate();
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.util.jpa.EntityManagerFactoryCreator

Copyright © 2018 www.massapicom. 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.