RE: [appfuse-user] RE: RE: many-to-many with attribute ... again

2007-07-10 Thread Aled Rhys Jones
o:[EMAIL PROTECTED] Sent: 10 July 2007 09:11 To: users@appfuse.dev.java.net Subject: [appfuse-user] RE: RE: many-to-many with attribute ... again 'morning gents, Ok, no worries, I'll use an auto-gen'd id. Everything seems to be working a-ok. Mind you, I haven't really 'sunk my

[appfuse-user] RE: RE: many-to-many with attribute ... again

2007-07-10 Thread syg6
'morning gents, Ok, no worries, I'll use an auto-gen'd id. Everything seems to be working a-ok. Mind you, I haven't really 'sunk my teeth' into the app yet, I just wanted to confirm that what I wanted to do was a) possible and b) not a headache. Now that I see that it's feasible, it's onwards a

[appfuse-user] RE: RE: many-to-many with attribute ... again

2007-07-09 Thread Derek Broughton
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 mor

RE: [appfuse-user] RE: RE: many-to-many with attribute ... again

2007-07-09 Thread Aled Rhys Jones
So all you need in the PersonRequest model is the getters and setters. Cheers Aled -Original Message- From: syg6 [mailto:[EMAIL PROTECTED] Sent: 09 July 2007 15:21 To: users@appfuse.dev.java.net Subject: [appfuse-user] RE: RE: many-to-many with attribute ... again I figured it out. My f

[appfuse-user] RE: RE: many-to-many with attribute ... again

2007-07-09 Thread syg6
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 compos

[appfuse-user] RE: RE: many-to-many with attribute ... again

2007-07-09 Thread syg6
Yup. I have all 3 classes in my hibernate.cfg.xml: I also tried deleting PersonRequest from the hibernate.cfg.xml because I wasn't sure if it needed to be defined or not. But I got a different error so, I guess it does. I'll keep trying ... Thanks! Bob Aled Rhys Jones wrote: > > Yeah, y