Package org.apache.jdo.tck.pc.singlefieldidentity

Examples of org.apache.jdo.tck.pc.singlefieldidentity.PartTimeEmployee


        try {
            pm = getPM();
            pm.currentTransaction().begin();
            // create the oid
            Object wrongOid = new LongIdentity(PartTimeEmployee.class, id);
            PartTimeEmployee wrongInstance =
                    (PartTimeEmployee)pm.getObjectById(wrongOid, false);
            wrongInstance.toString();
            appendMessage(ASSERTION_FAILED + " getObjectById exact "
                    + "for wrong class must throw JDOUserException.");
        } catch (JDOException ex) {
            // good catch
        }
View Full Code Here

TOP

Related Classes of org.apache.jdo.tck.pc.singlefieldidentity.PartTimeEmployee

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.