Jump to content

AtkManyToOneRelation

From NusaATK
Revision as of 17:54, 1 January 2010 by Guri (talk | contribs) (Add reference to customising Select link)
atkManyToOneRelation screenshot

atkManyToOneRelation

If you do not want to use the default primary keys (for example when the * side has a combined PK), you can override them by using the functions:

 setLocalKey("a_id");
 setRemoteKey("b_id");

Example

Projects all have one coordinator (node B), but one coordinator can have multiple projects (node A). So in the project class, there's a atkManyToOneRelation to a coordinator.

When you use the AF_LARGE flag it is possible to customise the text for the select link, See Renaming_'add'_and_'select'_links_in_relations.