Package org.objectweb.speedo.pobjects.sequence.id

Examples of org.objectweb.speedo.pobjects.sequence.id.CompactDisc


    PersistenceManager pm = pmf.getPersistenceManager();
    pm.getObjectIdClass(CompactDisc.class);
    //get the sequence
    Sequence s = pm.getSequence(CD_SEQ);
    assertNotNull("Sequence " + CD_SEQ + " should not be null.", s);
    CompactDisc cd1 = new CompactDisc();
    cd1.setTitle("cd1");
    CompactDisc cd2 = new CompactDisc();
    cd1.setTitle("cd2");
    //make persistent
    pm.currentTransaction().begin();
    pm.makePersistent(cd1);
    pm.makePersistent(cd2);
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.pobjects.sequence.id.CompactDisc

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.