| To: | James Carman <james@xxxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [cinjug-users] Hibernate mapping extra data in link tables |
| From: | <twcrone@xxxxxxxxxxxxx> |
| Date: | Tue, 07 Nov 2006 12:33:15 -0500 |
| Cc: | Trey Howard <trey.howard@xxxxxxxxxxxx>,users@xxxxxxxxxx |
| Delivered-to: | mailing list users@cinjug.org |
| In-reply-to: | <eb4296c40611070831r5396e05meb4d1c666eb2e682@mail.gmail.com> |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
| Priority: | normal |
| References: | <f73bb58e1e300.454f67c2@insightbb.com> <DC1C7328E353C14589E9613E46F919F1EDE9C7@s000pex03.HaverstickConsulting.com> <4550B4B3.4060104@digilore.com> <eb4296c40611070831r5396e05meb4d1c666eb2e682@mail.gmail.com> |
|
Yes, that works. It was too easy that way. ;-) Thanks for the help. - Todd ----- Original Message ----- From: James Carman <james@xxxxxxxxxxxxxxxxxxxx> Date: Tuesday, November 7, 2006 11:31 Subject: Re: [cinjug-users] Hibernate mapping extra data in link tables To: Trey Howard <trey.howard@xxxxxxxxxxxx> Cc: users@xxxxxxxxxx > Yes, you have to have a class there to hold the relationship data. > > > On 11/7/06, Trey Howard <trey.howard@xxxxxxxxxxxx> wrote: > > I agree with Brian's solution--that's the only solution I'm > familiar with. > > I'm not sure what else would make sense, since if you don't > have a class > > for ABRelation, then how can you access the additional > information on > > the relationship? > > > > Todd, if you find a better solution, please post it here. > > > > -Trey > > > > > > Forsythe, Brian wrote: > > > What are you expecting the resultant object model to look > like? The most straightforward solution sounds like you'd > have three classes: A, B, and ABRelationship. > > > > > > ________________________________ > > > > > > From: twcrone@xxxxxxxxxxxxx [mailto:twcrone@xxxxxxxxxxxxx] > > > Sent: Mon 11/6/2006 4:50 PM > > > To: users@xxxxxxxxxx > > > Subject: [cinjug-users] Hibernate mapping extra data in link > tables> > > > > > > > I know I have seen this somewhere but I can't find it... > > > > > > I need to have a link table that not only specifies a > relationship but some information specific to that relationship > that is not specific to either entity in the relationship. > So I have a link table that I need to have more data other than > simply the IDs of the two entities that are related. > > > > > > I think there is a way to add a object that will specify the > extra data in the link but I can't remember the example I saw on this. > > > > > > Anyone done this before? > > > > > > - Todd > > > > > > > > > --------- > > > You may unsubscribe from this mailing list > > > by sending a blank email addressed to: > > > users-unsubscribe@xxxxxxxxxx > > > > > > -- > > > Find additional help by sending a blank email > > > addressed to: > > > users-help@xxxxxxxxxx > > > > > > > > > > > > > --------- > > You may unsubscribe from this mailing list > > by sending a blank email addressed to: > > users-unsubscribe@xxxxxxxxxx > > > > -- > > Find additional help by sending a blank email > > addressed to: > > users-help@xxxxxxxxxx > > > > > > --------- > You may unsubscribe from this mailing list > by sending a blank email addressed to: > users-unsubscribe@xxxxxxxxxx > > -- > Find additional help by sending a blank email > addressed to: > users-help@xxxxxxxxxx > |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [cinjug-users] Hibernate mapping extra data in link tables, James Carman |
|---|---|
| Next by Date: | Hibernate inheritence and collections, twcrone |
| Previous by Thread: | Re: [cinjug-users] Hibernate mapping extra data in link tables, James Carman |
| Next by Thread: | Hibernate inheritence and collections, twcrone |
| Indexes: | [Date] [Thread] [Top] [All Lists] |