TopLink Wiki

Main
About
Javadoc
Forum
Resources

RecentChanges
About Wiki
Find Pages
Page Index

Set your name in
UserPreferences

Edit this page


Referenced by
TopLinkGotchas




JSPWiki v2.0.52


LargeCollections


When an object has a 1-M relationship, and the M side can get quite large, there is no need to map it. Only map the 1-1 relationship (the "back reference"). Large collections should be mapped asymetrically. forum:329665

E.g. consider a Catalog object, containing many (potentially millions of) Items. Logically the Catalog has a 1-M relationship with Item. The Item keeps a "back reference" to the Catalog. When adding a new item to a catalog, you only set the back reference, without adding it to the "items" collection in Catalog.

See Also

forum:329665



Edit this page   More info...   Attach file...
This page last changed on 19-Oct-2005 10:21:25 PDT by 71.129.197.213.