Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Attribute.isAssociation in metamodel API returns false for relationship mappings
Attribute.isAssociation in metamodel API returns false for relationship mappings [message #548476] Thu, 22 July 2010 04:32 Go to next message
Roger Suen is currently offline Roger SuenFriend
Messages: 4
Registered: May 2010
Junior Member
Hi there,

I found in the eclipselink metamodel API, the method Attribute.isAssociation always returns false for those attributes of relationship mappings. For example, in an Employee and Department example, the entity type Employee has an attribute named "department" which is defined to be a many-to-one mapping. The method Attribute.isAssociation for the department attribute returns false.

So I wonder what exactly "association" means here in the metamodel API. I thought it means relationship mapping.

Thanks for any help

BTW: I'm working with EclipseLink 2.0.2

[Updated on: Thu, 22 July 2010 04:34]

Report message to a moderator

Re: Attribute.isAssociation in metamodel API returns false for relationship mappings [message #550903 is a reply to message #548476] Wed, 04 August 2010 15:26 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

This is a bug in our meta-model, it should return true for 1-1, m-1.

Please log a bug for this.

The issue is our code is internally calling isReferenceMapping() but should be calling isObjectReferenceMapping().


James : Wiki : Book : Blog : Twitter
Previous Topic:Existing managed object being inserted
Next Topic:Merge resets new data
Goto Forum:
  


Current Time: Wed Apr 24 19:52:01 GMT 2024

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

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

Back to the top