Package org.apache.openjpa.persistence.jdbc.query.domain

Examples of org.apache.openjpa.persistence.jdbc.query.domain.TimeEntity


    TimeKeeper pc = new TimeKeeper();
    pc.setDate(VALUE_DATE);
    pc.setTime(VALUE_TIME);
    pc.setTstamp(VALUE_TSTAMP);

        TimeEntity te = new TimeEntity();
        te.setName("name1");
        te.setValue(1);
        te.setCal2Timestamp(PARAM_CALENDAR);
        te.setCal2Time(PARAM_CALENDAR);
        te.setCal2Date(PARAM_CALENDAR);
    te.setUDate2SDate(VALUE_DATE);
    te.setUDate2Time(VALUE_DATE);
    te.setUDate2Timestamp(VALUE_DATE);
       
    em.getTransaction().begin();
    em.persist(pc);
    em.persist(te);
    em.getTransaction().commit();
View Full Code Here

TOP

Related Classes of org.apache.openjpa.persistence.jdbc.query.domain.TimeEntity

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.