-->
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.  [ 1 post ] 
Author Message
 Post subject: issue with locate() while converting EJB2.1 to Hibernate3.1
PostPosted: Tue Oct 17, 2006 11:22 am 
Beginner
Beginner

Joined: Tue Sep 19, 2006 5:46 am
Posts: 21
Location: india
hi all,

I am converting my application from EJB2.1(EntityBean) to HIbernate 3.1. I am planning to use the same ejb-ql which is passed from front-end with hibernate as hql. All most all query are working fine except locate() method.

when I was using locate() with entityBean for example

Select object(c) from CoolerInfoValue c where locate((c.contactPerson),'yan')>=1

it selects all contactperson which start with 'yan'. i.e. yan hang, yang hann etc


but when i use the same query above with hibernate createQuery(),

it selects only the contactperson yan ie it is searching the entire word no wild card search as in EntityBean.

I am using MS-SQL Server as my db.

can any one help me out,

Thanks,
Joseph.C

_________________
JosephC


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.