-->
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: possible bug: obtaining data with primary key
PostPosted: Fri Mar 23, 2007 6:56 am 
Newbie

Joined: Fri Mar 23, 2007 5:25 am
Posts: 1
I'm using hibernate in my application and I'm having a problem, which I think it is a bug:

My hibernate version is "3.2.1.ga".

My Objects of the application have as primary key an String. Let's supose that I create an object of class XClass.class, and which its primary key value is "primaryKey".

I can obtain this object form the DB by
Code:
sesion.get(XClass.class, "primaryKey").

This returns me the object form the DB with the code setted to "primaryKey".

Moreover, I can also obtain the same object by calling
Code:
sesion.get(XClass.class, "pRiMaRyKeY").
, because string keys are non key-sensitive.
However, when i use this call the object returned from the DB has as primary key the value "pRiMaRyKeY".

Is this correct, or it is a bug?

thanks


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.