Hello, A quick answer from a user who uses classes quite intensively... you can create links to other class instances (or objects) in your class by using the "Database List" property type for example. It is very powerful when you want to create a field of a class where values are stored in another class and created dynamically. You identify the link by the name of the XWiki class and the field name of this class used to establish the link... This is not exactly a reference to another object but a link to a field of another object. So if you use a unique field (some primary key in a relational DB world), you can easily retrieve the object from the field and it behaves as if you have a link between 2 objects. (It looks like a DB foreign key if you prefer)
There are also custom mappings which are simply hibernate mappings but it requires some deeper DB experience and I think this might be reserved to cases where you have an existing DB schema or you need performance. regards Pascal On Thu, Oct 1, 2009 at 6:15 PM, Guillem Plasencia <[email protected]>wrote: > Hello everybody, > > this is my first post to the list, i'm also newbie with Xwiki. I was > about to post this same question myself but Caleb James DeLisle took the > lead: > > >I was wondering if it would be worthwhile to try working on allowing > >objects to contain other objects as well as properties (like Java) > > Put in other words, could we have Classes where one (or more) of its > properties are instances of other Classes? It seems from what i read on > http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel > > that the answer right now would be "no". Could someone shed some light > on why is it so (what's the reason behind)? > > Thank you ! > > Guillem > > > > > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

