Hi Douglas,

 

(snip)

 

3. Jeff said that I should set the association properties for my 

filmActors destination as one-to-one. I'm guessing that this should be 

many-to-one, but am not sure. I've tried both it doesn't help my current


problem, but I'd love a definitive answer on which this should be. 

Victor Rubba sent me some code that uses many-to-one for an intermediate


object (albeit one with numeric ID, rather than complex object ID like 

mine). This is working code so it seems to support my guess.

 

I could not follow the code.txt link in your post but I suspect that you
are still missing the intermediate destination in the FDMS
configuration.   I apologize if I wasn't clear, but in this case since
you have 3 entity types in hibernate (Film, FilmActor, and Actor) in
hibernate, you need three destinations in FDMS one for each entity type.
The "actor" type would have a filmActors association property which is
of type: one-to-many or maybe many-to-many (we actually treat those two
as the same... we only care about the "to-many" or "to-one" part of the
association).  This one should point to the "filmActors" destination.
The filmActors destination would have a "film" association property and
an "actor" association property - both of these would be one-to-one or
many-to-one.   Probably all association properties should be marked
lazy="true".   If you can provide access to your FDMS configuration
somehow, I'll take a look to make sure that looks right.

 

Unfortunately I can't easily send an updated version of the
HibernateAssembler since the current version depends on some new code we
added that is not yet released.  

 

Jeff

 

 

 

 

 

 

 

--

Flexcoders Mailing List

FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 

Yahoo! Groups Links

 

    http://groups.yahoo.com/group/flexcoders/

 

    Individual Email | Traditional

 

    http://groups.yahoo.com/group/flexcoders/join

    (Yahoo! ID required)

 

    mailto:[EMAIL PROTECTED] 

    mailto:[EMAIL PROTECTED]

 

    [EMAIL PROTECTED]

 

    http://docs.yahoo.com/info/terms/

 

Reply via email to