-->
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 Criteria Query like operator
PostPosted: Tue Aug 02, 2011 4:27 am 
Newbie

Joined: Tue Aug 02, 2011 4:14 am
Posts: 1
I have a criteria query not really working. Here the model:

Code:
@Entity
public class Flaw extends BaseEntity implements Serializable {
    ...
    @Lob
    @Basic(fetch=FetchType.LAZY)
    private String text;
    ...

This query is going to be executed by hibernate (from Logs):

Code:
Hibernate:
    select
        ...
        flaw0_.text as col_7_0_,
        ...
    from
        Flaw flaw0_,
    where
        ...
        and (
            flaw0_.text like ?
        )
    order by
        flaw0_.text desc

But then I get the following StackTrace:
Code:
3171 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 42883
3171 [main] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: operator does not exist: text ~~ bigint
3198 [main] INFO org.hibernate.impl.SessionFactoryImpl - closing


If I run the above sql command (produced by hibernate) in the db, everything just works fine. I am using am using Hibernate 3.6.3.

Any Ideas?

BR, Rene


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.