Login  Register

Users - Understanding getRelatedXXX functions

Posted by Vinay Agarwal on Mar 09, 2006; 12:09am
URL: http://ofbiz.116.s1.nabble.com/Users-Understanding-getRelatedXXX-functions-tp137835.html

Hello,

 

I am getting confused on how do getRelatedXXX functions work. I would appreciate clarification. Part of the UserLogin relations are copied below. Are the following statements correct?

 

  1. getRelatedOne(“Party”) would get the entity in row 1.
  2. getRelated(“Party”) would get both entities in last two rows.

 

Thanks in advance.

Regards,

Vinay Agarwal

 

Relations

for entity UserLogin

Title

Related Entity

Relation Type

FK Name

Key Map

 

Party

one

USER_PARTY

partyId -> partyId

 

Person

one-nofk

 

partyId -> partyId

 

PartyGroup

one-nofk

 

partyId -> partyId

CreatedBy

ContactList

many

 

userLoginId -> createdByUserLogin

LastModifiedBy

ContactList

many

 

userLoginId -> lastModifiedByUserLogin

CreatedBy

Content

many

 

userLoginId -> createdByUserLogin

LastModifiedBy

Content

many

 

userLoginId -> lastModifiedByUserLogin

 

 

 

 

CreatedBy

Party

many

 

userLoginId -> createdByUserLogin

LastModifiedBy

Party

many

 

userLoginId -> lastModifiedByUserLogin

 

 

 

 

 

 


 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users