Skip to main content



      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 00:32 Go to next message
Eclipse UserFriend
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 00:34] by Moderator

Re: Attribute.isAssociation in metamodel API returns false for relationship mappings [message #550903 is a reply to message #548476] Wed, 04 August 2010 11:26 Go to previous message
Eclipse UserFriend
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().
Previous Topic:Existing managed object being inserted
Next Topic:Merge resets new data
Goto Forum:
  


Current Time: Tue Jul 22 19:42:55 EDT 2025

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

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

Back to the top