Re: AW: [Objectbridge-jdo-dev] jdo extension
Brought to you by:
thma
From: Thomas M. <tho...@ho...> - 2002-05-24 21:59:37
|
Hi again, tr...@th... wrote: <snip> > >>Any ideas about default naming conventions? >> > > Do you mean default name mapping from java field to table column? If so, I would say identical to the java field name. > > ex: > quantity -> quantity > productGroup -> productGroup > > Same for class names to tables. ACK. But what about the primary key attributes, foreign key attributes etc. For marking primary key fields we can use the "primary-key" attribute of the <field>-element. So far But for building ReferenceDescriptors and CollectionDescriptors OJB must know which fields of a persistent class serve as foreign key for the reference or collection field. if a ProductGroup (with primary key field "id") has a Vector of Articles in an attribute "allArticles", each Article needs a field "fkProductGroup" that contains the foreign key pointing to the primary key "id" of ProductGroup. You'll need default namings for those things too, otherwise OJB load and store references and collections! cheers, Thomas > > travis > > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Objectbridge-jdo-dev mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-jdo-dev > > > > |