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

Examples of br.com.caelum.vraptor.util.jpa.EntityManagerFactoryCreator.create()


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();
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.