Firstly make sure that the column exists in your database table. 

Secondly, since it is a primitive int, you need to make sure that it
contains a value.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Andrew Zeon
> Sent: Wednesday, 1 October 2003 4:29 PM
> To: '[EMAIL PROTECTED]'
> Subject: [Hibernate] Schema changes
> 
> 
> Hi...
> 
> This may be a stupid question, but I'm struggling to find an 
> answer for it. I have a class called UserImpl. To this class 
> I want to add another variable called 'mobileNumber' of type 
> int. Obviously, I want a corresponding column in my db table as well. 
> 
> I've tried adding a new instance variable called 
> mobileNumber, and added set/get methods, and added another 
> property to my UserImpl.hbm.xml file. However, now I get a 
> null pointer exception.
> 
> Firstly, am I do this correctly? Secondly, are there any 
> documents or articles which would be useful for me? I've 
> tried searching around but could not find anything.
> 
> Thanks.
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> hibernate-devel mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to