-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: get fields from many-to-many middle table and extern tables
PostPosted: Wed Jun 04, 2008 4:52 am 
Newbie

Joined: Mon Apr 28, 2008 1:27 pm
Posts: 2
Hibernate version:
3.1.3

Hello forum !! I work about two problems and don't find any solution...

I have 4 tables :
model
modelid
modelname


model_media
modelid
mediaid
model_mediaweight
model_mediaistemplate

media
mediaid
medianame
formatid


format
formatid
formatname


I have succeed about my first mapping : have a ModelVO and link it with a MediaVO, with ordering by model_mediaweight and model_mediaistemplate. Now the server return to me a collection of models with for each a collection of linked medias

Now, my first problem is to add into the MediaVO each values of model_mediaistemplate, I don't know how to do it. I tried to add an [element] into the many-to-many declaration, but it's not the solution...

Second problem, I would like to get, for each media, it format. I tried with a one-to-one collection, but hibernate request to me a getter for media into my FormatVO. But format table doesn't have any link about media.

If anybody can give me suggestions about these problems it would be very helpful.

Thanks in advance


Thierry aka titouille

PS : I work with livecycle data services and Flex


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.