-->
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: <list> and <index>
PostPosted: Fri Jul 29, 2005 9:18 am 
Beginner
Beginner

Joined: Mon Jun 20, 2005 3:14 pm
Posts: 33
Hi,

Hibernate doesn't allow index column to be the same as many-to-many column (in this case COD_OCORRENCIA). How do I order my list by this column?

Code:
<list name="ocorrencias" table="OCORRENCIA_CESTA">
  <key column="COD_CESTA" />
  <index colum="COD_OCORRENCIA" />
  <many-to-many column="COD_OCORRENCIA" class="Ocorrencia" />
</list>


Thanks,

Andre


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 29, 2005 10:20 am 
Beginner
Beginner

Joined: Wed May 04, 2005 5:17 am
Posts: 40
Doesn't <list> support an "order-by" attribute?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 29, 2005 1:18 pm 
Beginner
Beginner

Joined: Mon Jun 20, 2005 3:14 pm
Posts: 33
The tag <index> is not optional for <list>. I have to choose a column...


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.