-->
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: Hibernate LIKE
PostPosted: Tue Sep 20, 2005 4:48 pm 
Senior
Senior

Joined: Tue Sep 13, 2005 2:01 am
Posts: 137
I have a EJB query:
select s from Student s where s.name LIKE '%John%'

The result returned is empty without error message. If I use SQL, it works fine. I am using JBOSS AS4.0.3RC1. Does it support LIKE? Thanks.Dave


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 20, 2005 6:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Hibernate supports 'like' keyword. You can configure Hibernate to dump the SQL generated - cut and paste it to see whats going on.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 20, 2005 11:55 pm 
Senior
Senior

Joined: Tue Sep 13, 2005 2:01 am
Posts: 137
david wrote:
Hibernate supports 'like' keyword. You can configure Hibernate to dump the SQL generated - cut and paste it to see whats going on.

how to configure Hibernate in JBoss AS? I am very new. Thanks.


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.