-->
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: case sensitive problem in namedQuery
PostPosted: Wed Sep 11, 2013 3:20 am 
Newbie

Joined: Tue Sep 10, 2013 8:18 am
Posts: 1
Hi to all, I have a strange problem that is making me lose a lot of time.
I'm using:
- Hibernate core: 4.2.3
- HibernateValidator 4.3.1
- Hibernate-jpa-2.0-api-1.0.1

I have a simple namedQuery in an @Entity Java class
"select dog from Dog dog where dog.id=:idDog"

The problem is that hibernate validator doesn't let me call the indentify variable with the same name of the table. In previous version of hibernate (3.3.2), this works but when I updated to this version all started to fail.
This is the error for this query:
An identification variable must not have the same name as any entity in the same persistence unit.

There is any parameter to enable case sensibility between indentifiy variables and table names?
Is a bug?

Thanks.
Regards


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.