-->
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.  [ 1 post ] 
Author Message
 Post subject: Does any tag support entity names in 3.1
PostPosted: Thu Aug 03, 2006 6:25 pm 
Beginner
Beginner

Joined: Tue May 23, 2006 4:10 pm
Posts: 38
Location: Charleston, SC
We have the following mapping:

Code:
<any name="risk" meta-type="string" id-type="string">
            <meta-value value="Person" class="Person"/>
            <meta-value value="VesselArrival" class="VesselArrival"/>
            <column name="RISK_TYPE"/>
            <column name="RISK_ID"/>
</any>



What I really need is the following:

Code:
<any name="risk" meta-type="string" id-type="string">
            <meta-value value="Person" class="Person"/>
            <meta-value value="VesselArrival" entity-name="MyVesselArrival"/>
            <column name="RISK_TYPE"/>
            <column name="RISK_ID"/>
</any>


Our VesselArrival POJO is mapped to multiple tables. We don't see a way to declare the entity name in the any mapping which causes the save to fail with an "unknown entity" message.

Grant


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

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.