Register / Login
Object Relational Mapping
Hibernate mapping oracle char
posted 10 years ago
I have db field of type char(4).
I use hibernate to get this particular field .
The type specified in hibernate file is as below
<property name="abc" type="string">
<column name="abc" length="4" />
I also tried giving sql-type=char(4).
I used createSQLQuery method of hibernate session to get this value .
But I get only the first character of the field value.
Can anybody suggest why?
posted 9 years ago
bean that you map to define the property 'abc' as a java
The Java char primative, or
class still only old one character.
I found that char(s) in the datbase map to
, or "text" types in hibernate.
Error: Keyboard not attached. Press F1 to continue.
Hibernate insert or select gives "Identifier of an instance altered"
Mapping Problem in Hibernate
JOIN syntax for HQL . Need help!
how to insert