#10 Hydrate and Non-cumulative Problem

closed
None
5
2005-10-13
2005-09-26
No

But there's still a problem...it's not a simple one and
it took me a
long time
to understand the failure.

The problem :
when you parse the mapping file, every mapping is
cloned and
reversed (in
order to make the mapping bidirectional), but when you
clone a
genericfieldmap
the RELATIONSHIPTYPE property is not cloned, therefore
update of a list
is not
working from classB to classA.

The solution would be :
- MappingFileReader (line 163), add the code :
"((GenericFieldMap)fm).setRelationshipType(((GenericFieldMap)field).getRelations
hipType());"
- or to overload the method "clone()" in the class
GenericFieldMap

c what I mean ?

Discussion

  • Franz Garsombke

    Franz Garsombke - 2005-09-26

    Logged In: YES
    user_id=550744

    fixed for 1.5.5 release

     
  • Franz Garsombke

    Franz Garsombke - 2005-10-11
    • status: open --> pending
     
  • Franz Garsombke

    Franz Garsombke - 2005-10-13
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks