So, I’m making another run at this, and running into the same problem that I cannot seem to resolve through googling. Apologies if this has already been dealt with on the list.
My problem is this. I have a reasonably large application that currently works just peachy using OpenJPA. I’m trying to switch to EclipseLink and running into problems immediately.
The errors I’m getting:
[EL Info]: 2014-11-13 09:53:24.831--ServerSession(725307088)--EclipseLink, version: Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5 [EL Severe]: 2014-11-13 09:53:25.378--ServerSession(725307088)--Exception [EclipseLink-0] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.IntegrityException Descriptor Exceptions: ---------------------------------------------------------
Exception [EclipseLink-93] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The table [product] is not present in this descriptor. Descriptor: RelationalDescriptor(com.chiralbehaviors.CoRE.event.status.StatusCodeSequencing --> [DatabaseTable(ruleform.status_code_sequencing)])
Runtime Exceptions: ---------------------------------------------------------
Exception [EclipseLink-7329] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.ValidationException Exception Description: Attribute id of FetchGroup(){id, service, statusCodeByChild, parentCode, statusCodeByParent, updatedBy, childCode} is not mapped.
The class that is causing the problem can be found here:
There is only one reference to the product table that it’s complaining about, which is the service instance variable:
private Product service;
The Product entity class can be found here:
https://github.com/ChiralBehaviors/Ultrastructure/blob/master/model/src/main/java/com/chiralbehaviors/CoRE/product/Product.java
Here is the persistence.xml I’m using:
So I’m more than a little baffled. As i said, I don’t have any problems with this in OpenJPA, but I can’t seem to get past this point. Certainly, the “product” table is, indeed, present in the descriptor. Further, I have no idea what the issue with "Attribute id of FetchGroup()… is not mapped”.
Any help would be appreciated.
|