types - DB2 Character Datatype and JPA Not Working -
i working db2 universal database having lots of tables columns of datatype character. length of these columns variable (greater 1 e.g. 18). execute native query using jpa selects first character of column. seems character datatype mapped java character.
how can full contents in db column. can not change database bening on vendor side. please note need both ways, i.e. :
- using jpql ( attribute columndefinition can work in case)
- using native db query (no pojo used in case , have no control on datatypes)
i using hibernate implementation of jpa provided spring.
if these columns common in database, can customize dialect used hibernate. see comments hhh-2304.
Comments
Post a Comment