-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Annotations not loading columns of table on UNIX
PostPosted: Thu Jul 17, 2008 4:50 am 
Newbie

Joined: Thu Jul 17, 2008 2:00 am
Posts: 4
Location: INDIA
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.