-->
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: PropertyAccessException when manually altering a table
PostPosted: Mon Nov 20, 2006 11:24 am 
Beginner
Beginner

Joined: Mon Nov 13, 2006 8:22 am
Posts: 28
hi,

I've created a table using the hbm2ddl.auto-property. For now the data in that table is not important (still testing) but let's assume it is. I've altered the table by manually adding a column (alter table CLUB add ranking int(11) ) and ofcourse also added this property to the mapping file and the POJO. However, when I try to load anything from the table I get following exception:
Code:
org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.skopco.pronocl.data.Club.groupRanking


I've tried about anything like updating the table setting the value of this column to something but the error remains. I could just recreate the whole table with hibernate but then I lose the data.

I also don't understand how Hibernate can tell the difference between a munualy created column and one that was created through hibernate; the column properties look exactly the same.

Any help/solution would be very appreciated!

tx,
Stijn


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 8:20 am 
Beginner
Beginner

Joined: Mon Nov 13, 2006 8:22 am
Posts: 28
anybody?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 7:44 am 
Beginner
Beginner

Joined: Mon Nov 13, 2006 8:22 am
Posts: 28
jeezes,

looking back I can't believe I posted this stupid question :-P


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.