public class PCSubclassValidator extends Object
Validates that a given type meets the JPA contract, plus a few OpenJPA-specific additions for subclassing / redefinition:
Object.clone()
,
readObject(ObjectInputStream)
, or
Externalizable#readExternal(ObjectInput)
.If you use this technique and use the new
keyword instead
of a OpenJPA-supplied construction routine, OpenJPA will need to do extra
work with persistent-new-flushed instances, since OpenJPA cannot in this
case track what happens to such an instance.
Constructor and Description |
---|
PCSubclassValidator(ClassMetaData meta,
serp.bytecode.BCClass bc,
Log log,
boolean enforceContractViolations) |
public PCSubclassValidator(ClassMetaData meta, serp.bytecode.BCClass bc, Log log, boolean enforceContractViolations)
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.