Package org.apache.openjpa.persistence.jdbc.version.model

Examples of org.apache.openjpa.persistence.jdbc.version.model.TimestampVersion


    public void testNullTimestampVersion() {
        EntityManager em = emf.createEntityManager();
        EntityTransaction tran = em.getTransaction();
        tran.begin();
        em.persist(new TimestampVersion());
        em.persist(new TimestampVersion());
        tran.commit();

        tran.begin();
        em.createNativeQuery("UPDATE TimestampVersion set version = NULL").executeUpdate();
        tran.commit();
View Full Code Here


    public void testNullTimestampVersion() {
        EntityManager em = emf.createEntityManager();
        EntityTransaction tran = em.getTransaction();
        tran.begin();
        em.persist(new TimestampVersion());
        em.persist(new TimestampVersion());
        tran.commit();

        tran.begin();
        em.createNativeQuery("UPDATE TimestampVersion set version = NULL").executeUpdate();
        tran.commit();
View Full Code Here

TOP

Related Classes of org.apache.openjpa.persistence.jdbc.version.model.TimestampVersion

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.