RE: [ojb-users] How define composite keys using OJB.
Brought to you by:
thma
From: Weaver, S. <Sw...@ri...> - 2002-04-26 19:52:38
|
Thanks Thomas, I had originally come to that conclusion, but was getting weird query results. The issue ended up being that I had forgot to add the <PrimaryKey>true</PrimaryKey> to one of the 3 FieldDescriptors that were PK's. After fixing that, everything worked fine. Thanks again, Scott > -----Original Message----- > From: Thomas Mahler [mailto:tho...@ho...] > Sent: Friday, April 26, 2002 2:27 PM > To: Weaver, Scott > Cc: obj...@li... > Subject: Re: [ojb-users] How define composite keys using OJB. > > > 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 > > > > > > _______________________________________________ > Objectbridge-users mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-users > |