RE: 1-1-Mapping: Referenced field must be primaryKey???

2003-03-05 Thread Mahler Thomas
hi again, > > > hi thomas, > is the primary key in the repository allways primary key of the > database-table? not required > or do they only have to be unique values? Yes, that's sufficient. cheers, Thomas > > joerg > > > > --

Re: 1-1-Mapping: Referenced field must be primaryKey???

2003-03-05 Thread Joerg Lensing
Thomas Mahler schrieb: Hi Joerg, Joerg Lensing wrote: Hi, junit: Article - Produktgroup Article holds an ID from Productgroup. In the example it is the primaryKey from table Kategorien. foreign keys from one table alway reference primary keys of another (or the same in case of self-join) ta

Re: 1-1-Mapping: Referenced field must be primaryKey???

2003-03-04 Thread Thomas Mahler
Hi Joerg, Joerg Lensing wrote: Hi, junit: Article - Produktgroup Article holds an ID from Productgroup. In the example it is the primaryKey from table Kategorien. foreign keys from one table alway reference primary keys of another (or the same in case of self-join) table. Can I use different f

1-1-Mapping: Referenced field must be primaryKey???

2003-03-04 Thread Joerg Lensing
Hi, junit: Article - Produktgroup Article holds an ID from Productgroup. In the example it is the primaryKey from table Kategorien. Can I use different field for it? i get the message: WARN: OJB broker could not materialize AbstractPersistent{1332} The number shown is the fieldvalue i want