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: Order class ignore case method??
PostPosted: Thu Dec 15, 2005 4:25 am 
Beginner
Beginner

Joined: Sun Oct 16, 2005 3:07 am
Posts: 33
Location: Sydney
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3

How do you use the ignoreCase() method on the Order class so that the results are not sorted by case. It doesn't seem to be available. I have a search

return getSession().createCriteria(LocationGroupBean.class)
.add(Restrictions.eq("siteId", new Integer(siteId) ))
.add(Restrictions.eq("deleted", Boolean.FALSE))
.addOrder(Order.asc("name"))
.list();


The Order.asc("name") returns an Order object so you'd think you could do Order.asc("name").ignoreCase() but that doesn't work - can't find the method.

Anyone used it before?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 15, 2005 7:51 pm 
Beginner
Beginner

Joined: Sun Oct 16, 2005 3:07 am
Posts: 33
Location: Sydney
No-one come across this before?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 16, 2005 2:28 am 
Beginner
Beginner

Joined: Sun Oct 16, 2005 3:07 am
Posts: 33
Location: Sydney
None of the hibernate guys want to come in on this one?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 17, 2005 12:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
If your posting (or a question you are referring to) was not answered by anybody, the possible reasons are:

- http://www.hibernate.org/ForumMailingli ... AskForHelp
- You did not submit enough information
- Nobody knows the answer or has the free time to answer

What you can do now:

- Do the things listed in After Posting
- Add missing and/or more information
- Consider commercial support for guaranteed expert response times

This is a high-traffic forum run by volunteers with hundreds of postings made every day. The community works because people try to help others in their free time. Nobody is paid for this service or has to pay.

You should not expect a timely response and you should not rely on a public community forum for critical cases.

All community members should respect the rules of this forum and treat others like they would prefer to be treated.

_________________
Max
Don't forget to rate


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.