-->
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.  [ 7 posts ] 
Author Message
 Post subject: How can I generater Multi-column key of Set using XDoclet?
PostPosted: Wed Oct 15, 2003 10:26 pm 
Beginner
Beginner

Joined: Fri Sep 26, 2003 2:50 am
Posts: 32
the hbm.xml like following:
Code:
<set name="dates" laxy="true">
     <key>
            <column name="column1" />
            <column name="column2" />
            <column name="column3" />
            <one-to-many class="test" />
</set>


can i use XDoclet for this mapping?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2003 10:28 pm 
Beginner
Beginner

Joined: Fri Sep 26, 2003 2:50 am
Posts: 32
sorry, I made a mistake, the mapping should be following:
Code:
<set name="dates" laxy="true">
     <key>
            <column name="column1" />
            <column name="column2" />
            <column name="column3" />
     </key>
     
     <one-to-many class="test" />
</set>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 16, 2003 8:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Have you tried using multiple column XDoclet tags?
I don;t use compound keys but when I have needed multiple columns say for a user type its worked fine.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 16, 2003 9:24 pm 
Beginner
Beginner

Joined: Fri Sep 26, 2003 2:50 am
Posts: 32
david wrote:
Have you tried using multiple column XDoclet tags?
I don;t use compound keys but when I have needed multiple columns say for a user type its worked fine.


What is "multiple column XDoclet tags" ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 16, 2003 10:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I decided to try it out and it did not work so I checked the source and as far as I can tell XDoclet does not support multiple column entries for the key. Create a entry in JIRA or at the Xdoclet project.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 27, 2003 6:13 am 
Beginner
Beginner

Joined: Fri Sep 26, 2003 2:50 am
Posts: 32
I created a new entry in JIRA, but now answer!


Top
 Profile  
 
 Post subject: multiple columns xdoclet custom value types
PostPosted: Tue Oct 28, 2003 7:55 am 
Newbie

Joined: Tue Oct 28, 2003 7:50 am
Posts: 1
Location: Karlsruhe, Germany
david wrote:
I decided to try it out and it did not work so I checked the source and as far as I can tell XDoclet does not support multiple column entries for the key. Create a entry in JIRA or at the Xdoclet project.


hi david,

do you have an example of XDoclet tag for a custom value type (perhaps net.sf.hibernate.test.DoubleStringType) ?

thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.