-->
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.  [ 4 posts ] 
Author Message
 Post subject: annotations sorting collate
PostPosted: Tue Sep 13, 2005 4:24 pm 
Newbie

Joined: Tue Sep 13, 2005 4:10 pm
Posts: 2
Hi all,
I am using Hibernate 3 along with the Hibernate Annotations. Ordering in my application does not work correctly because data stored in the database are in the Slovak language. IMHO I need to specify at property definition in a POJO class something like COLLATE 'skSK'. But I do not know how. This is possible and works very well at column definition in a Hibernate mapping file. Thanks for any help or clue.

Ales


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 13, 2005 7:11 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you mean order by at the DB level? You should check your JDBC configuration properties.

_________________
Emmanuel


Top
 Profile  
 
 Post subject: annotations sorting collate
PostPosted: Thu Sep 15, 2005 6:37 am 
Newbie

Joined: Tue Sep 13, 2005 4:10 pm
Posts: 2
Yes, you have right. My problem should be solved outside of the Hibernate and Hibernate Annotations. Thank you for clue.

Ales


Top
 Profile  
 
 Post subject: Re: annotations sorting collate
PostPosted: Tue Nov 29, 2005 12:14 pm 
Newbie

Joined: Tue Oct 18, 2005 11:22 am
Posts: 14
ales wrote:
IMHO I need to specify at property definition in a POJO class something like COLLATE 'skSK'. [...] This is possible and works very well at column definition in a Hibernate mapping file.


So it seems to work with a Hibernate mapping file!? But how?

I have the same problem with German Umlauts, but I didn't find any xml-attribute "collate" for the collection-elements.

There's only the "order-by"-attribute.

What I want, is something like:

Code:
<bag name="children" inverse="true" cascade="all-delete-orphan" order-by="name" collate="latin1_german2_ci">
    <key column="parentId"/>
    <one-to-many class="Child"/>
</bag>


Btw, does anybody know, wether HSQLDB supports such collation-stuff and where I can find a list of all available collate-charactersets?

TIA,
Schorsch


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