-->
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: Hibernate+Oracle (generally lob fields): do where condition
PostPosted: Thu Apr 02, 2009 10:17 am 
Newbie

Joined: Wed May 24, 2006 5:47 pm
Posts: 14
Hi all.

I have some tables in my Oracle RDBMS where some fields are CLOB type.
I need to do a query by using hibernate DetachedCriteria setting a where condition on this fields.
How can i do this?

I'ld love to do something like this one:

Code:
DetachedCriteria criteria = DetachedCriteria.forClass(MyEntity.class);
criteria.add(Property.forName("clobField").like("test", MatchMode.ANYWHERE));
criteria.list();


For varchar fields it works pretty good. In CLOB fields i get an error.
I have seen that the generated hibenrtae query in this case doesn't contain the dbms_lob.substr function.

I really need a solution for this scenario.
Did anybody try to solve it?

It's little bit urgent...
Thank you to everybody.
Best regards.
Angelo


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.