syg6 wrote: > > I figured it out. My fault. Forgot to put @Entity in the Person class! > > One last question - I think PersonRequest should have a combination of > 'person_id' and 'request_id' as its primary key, how can I do that? > Currently it has its own auto-numeric key but I think it's more correct to > use a composite key ... > Good Database Design (TM) would have you use the auto-numeric key, while possibly putting a unique index on person_id/request_id. Otherwise you may need to modify other tables if anything changes in the PersonRequest table. -- derek
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
