Re: [ojb-users] How define composite keys using OJB.
Brought to you by:
thma
From: Thomas M. <tho...@ho...> - 2002-04-26 17:26:56
|
Hi Scott, Weaver, Scott wrote: > I'm accessing legacy data that has some of it's tables using composite > (multiple) primary keys. How is this accomplished in OJB? That's quite easy: For each attribute in your persistent class representing a Primary key column in your DB add a <primaryKey>true</primaryKey> elements to their respective FieldDescriptors in the Repository. That's all! Details for Reference- and CollectionDescriptors are mentioned in tutorial 3. HTH, Thomas > > Thanks, > Scott > |