Home » Support » Forum » Getting Foreign Key

Getting Foreign Key

#1

How to get Foreign key using  org.eclipse.persistence.queries.WriteObjectQuery class ..?

please help me by using this class only..why means i am implementing audit log concept in my application, so i have forms like header level and line level forms. so when i am updating line level i can get line level primary key but i also nead to get foreign key which is belongs to header.

WriteObjectQuery query = (WriteObjectQuery) event.getQuery();

query.getReferenceClass().getSimpleName() by using this i got pojo name

query.getPrimaryKey() by using this i can get primary key now i nead to get foreighn key also how can i get it..?

Please help me asap......

Thanks in Advance...?

#2

Are you using ObjectDB or EclipseLink?

For EclipseLink questions please use the EclipseLink forum.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login