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
Alex Ioannou is currently offline Alex IoannouFriend
Messages: 4
Registered: July 2012
Junior Member
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:Persist @ElementCollection Map - The list of fields to insert into the table is empty
Next Topic:EclipseLInk level 2 caching
Goto Forum:
  


Current Time: Wed Dec 13 11:28:14 GMT 2017

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

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