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