Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.0
Name and version of the database you are using:oracle
Hi all,
I use char(2) as primary key in my table in oracle,but I can not get the existing record using session.get(String entityName, Serializable id).
following is mapping file,I use dynamic-class
<class entity-name="A_TEST">
<id name="id" type="string">
<column name="id" sql-type="char(2)"/>
<generator class="assigned"/>
</id>
<property name="name" column="name" type="string"/>
</class>
following is my code:
...
session.get("A_TEST","1");
...
there is a record whose primary key is "1" certainly,why?