-->
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.  [ 3 posts ] 
Author Message
 Post subject: Mapping Error
PostPosted: Fri Dec 05, 2003 11:12 am 
Newbie

Joined: Fri Dec 05, 2003 11:07 am
Posts: 14
I getting the follwing mapping error:

<net.sf.hibernate.MappingException: Problem trying to set property type by reflection>net.sf.hibernate.MappingException: Problem trying to set property type by reflection

I believe this is the part thats causing the error

<id name="forecastID" type="long" unsaved-value="null" >
<column name="FC_DS_ID" sql-type="BIGINT" not-null="true"/>
<generator class="assigned"/>
</id>

The above is an autonumber field in the table, the field type is a BIGINT.
The database is DB2


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 05, 2003 11:17 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
What is the actual java type of id ?
Do you have setter and getter ?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 05, 2003 12:57 pm 
Newbie

Joined: Fri Dec 05, 2003 11:07 am
Posts: 14
it was a problem with setter
working fine now


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.