-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problems with map and composite-element
PostPosted: Wed Mar 03, 2004 11:08 am 
Newbie

Joined: Thu Dec 11, 2003 6:21 am
Posts: 8
Hi,

I'm trying to get following to work:

Code:
..
<map name="localizedData" table="LocalizedData" cascade="all" access="field" lazy="false" >
            <key column="ownerId"/>
            <index column="locale" type="locale"/>
            <composite-element class="ClassA">
                <property name="prop1" />
                <property name="prop2" />
            </composite-element>
</map>
..


I keep getting "MappingException: No persister for ClassA". Any ideas? I'm using 2.1.1.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 03, 2004 11:10 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
When are you getting the exception? On parse time? If later, show your code.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 03, 2004 12:06 pm 
Newbie

Joined: Thu Dec 11, 2003 6:21 am
Posts: 8
michael wrote:
When are you getting the exception? On parse time? If later, show your code.


Actually problem got solved - unlike in the mapping I posted I had cascade="all-delete-orphans". Changed it to "all" and everything works as expected. Thanks for help anyway.


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

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.