I am attempting to migrating from Toplink to OpenJPA and have encountered a
problem persisting a object. With Toplink I was able to use the definition
below to persist a object into a BLOB field however after moving to OpenJPA
I am getting a ClassNotFoundException when attempting to store the value.
The class definition is stored in a separate JAR file all packaged in an EAR
running on Weblogic 10.3.
Is there a property to define classpaths separately with OpenJPA? Any idea
why classes in the same project could not be referenced?
The entity is defined with the following attribute definition
@Basic()
@Column(name="METADATA_LIST", length=4000)
public SerializedClass getSerialzedClass() {
return this.serializedClass;
}
public void setSerializedClass(SerializedClass serializedClass) {
this.serializedClass= serializedClass;
}
Thanks,
Jon