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
|