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