-->
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.  [ 2 posts ] 
Author Message
 Post subject: Primary key with Data Type Number is not mapped
PostPosted: Thu Apr 15, 2010 2:18 pm 
Newbie

Joined: Thu Apr 15, 2010 2:08 pm
Posts: 1
Hi,

I have table structure like below in Oracle
name varchar2
class char
school varchar2
roll_no Number Primary Key

I am using Spring along with hibernate.
On the server startup i m getting error property not found for Col4 in the pojo class.
I have tried with the int, Integer and Long datatype for col4 in the Pojo class.

hbm.xml will look like this

<class name="pojo" table="table" mutable="false">

<id name="rollNo" column="roll_no"/>
<property name="name" column="name"/>
<property name="class" column="class"/>
<property name="school" column="school"/>


Regards
Samar


Top
 Profile  
 
 Post subject: Re: Primary key with Data Type Number is not mapped
PostPosted: Thu Apr 15, 2010 5:12 pm 
Regular
Regular

Joined: Thu May 07, 2009 5:56 am
Posts: 94
Location: Toulouse, France
what error you are getting? can you please post here your stack trace?

_________________
everything should be made as simple as possible, but not simpler (AE)


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

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.