Hibernate version:Hibernate 3
Mapping documents:Loading through Annotations
Name and version of the database you are using: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
The generated SQL (show_sql=true):select EMPLOYEE_ID from EMPLOYEE
I am facing a problem while I am deploying my code on the UNIX machine. I have mapped the columns of my table using annotations. Below is the code. The query that is created by the Hibernate loads just the Primary key and discards all the other columns present in the code. So instead of inserting the data in all the columns, it creates a query like this:-
insert into employee (EMPLOYEE_ID) values (?)
In this table, EMPLOYEE_ID is the Primary Key.
The Hibernate is loading just the PK. If I add a new PK, then that column is loaded. However if I remove the PK, no column is loaded.
This code works fine on my windows machine which has the following JVM details:-
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
Following are the JVM version details on the UNIX machine :-
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pap64dev-20051104)
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423-20051103 (JI
T enabled)
J9VM - 20051027_03723_BHdSMr
JIT - 20051027_1437_r8
GC - 20051020_AA)
JCL - 20051102
If anybody has faced the same problem, please help.
|