Examples of Version1


Examples of org.hibernate.ejb.test.pack.defaultpar_1_0.Version1

    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "defaultpar_1_0", new HashMap() );
    EntityManager em = emf.createEntityManager();
    ApplicationServer1 as = new ApplicationServer1();
    as.setName( "JBoss AS" );
    Version1 v = new Version1();
    v.setMajor( 4 );
    v.setMinor( 0 );
    v.setMicro( 3 );
    as.setVersion( v );
    Mouse1 mouse = new Mouse1();
    mouse.setName( "mickey" );
    em.getTransaction().begin();
    em.persist( as );
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.