Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Problems migrating from OpenJPA to Eclipselink [table not present in descriptor]

I'm seeing a ManyToOne reference to  StatusCodeSequencing from com.chiralbehaviors.CoRE.workspace.WorkspaceAuthorization.java

On Thu, Nov 13, 2014 at 4:28 PM, Doug Clarke <douglas.clarke@xxxxxxxxxx> wrote:
Hal,

Great to hear from you. The error is due to some reference mapping that points to the StatusCodeSequencing entity from another entity. I would assume its in the FK custom mapping. I have seen this where the target and foreign keys get flipped. How many classes have a reference to it and is there any orm.xml in use?

Doug

On Nov 13, 2014, at 3:51 PM, Hal Hildebrand <hal.hildebrand@xxxxxx> wrote:

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.

-Hal

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top