Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » ClassDescriptor.getPrimaryKeyFieldNames() (Dynamic MOXy)
ClassDescriptor.getPrimaryKeyFieldNames() (Dynamic MOXy) [message #1738525] Wed, 20 July 2016 14:28
Eclipse UserFriend
Is there a way to get the list of primary keys for a MOXy DynamicType so that the list contains just the keys and not the types?

For example if I have a primary key called "a-primary-key" then I would want the list to contain just that and not "a-primary-key/text()"

I tried:

objectType.getDescriptor().getPrimaryKeyFieldNames()
and
objectType.getDescriptor().getPrimaryKeyFields().get(0).getName()

to no avail.
Previous Topic:soft delete is deleting relations
Next Topic:Persist @ElementCollection Map - The list of fields to insert into the table is empty
Goto Forum:
  


Current Time: Sat Apr 20 01:22:48 GMT 2024

Powered by FUDForum. Page generated in 0.03679 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top