private void setTopParent(TopLevelParent topParent) {
   this.parent = topParent.getComponent();
}


should do what you need ;)




                                                                                       
                                               
                    "Viktor Szathmary"                                                 
                                               
                    <[EMAIL PROTECTED]>                 To:     [EMAIL PROTECTED]      
                       
                    Sent by:                                cc:                        
                                               
                    [EMAIL PROTECTED]       Subject:     [Hibernate] hib2 - parent in 
composite-element               
                    eforge.net                                                         
                                               
                                                                                       
                                               
                                                                                       
                                               
                    31/01/03 03:39 PM                                                  
                                               
                                                                                       
                                               
                                                                                       
                                               




hi,

i decided to take the path of least resistance, and migrate to hib2 (took
about 5 minutes) to get support for <parent>...

alas, i got an IllegalArgumentException: "argument type mismatch" when
it's calling the setter... it turns out the problem is more of a
misunderstanding - the <parent> for the nested composite-element is
actually the outermost <class> according to Hibernate.. according to me,
it should be the immediate parent (since the whole bag is nested inside a
<component>). i guess both approaches make sense under various
circumstances, although i think using the immediate parent would be more
intuitive...

best regards,
    viktor


--
http://fastmail.fm - Choose from over 50 domains or use your own


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel




**********************************************************************
Any personal or sensitive information contained in this email and
attachments must be handled in accordance with the Victorian Information
Privacy Act 2000, the Health Records Act 2001 or the Privacy Act 1988
(Commonwealth), as applicable.

This email, including all attachments, is confidential.  If you are not the
intended recipient, you must not disclose, distribute, copy or use the
information contained in this email or attachments.  Any confidentiality or
privilege is not waived or lost because this email has been sent to you in
error.  If you have received it in error, please let us know by reply
email, delete it from your system and destroy any copies.
**********************************************************************





-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to