David Nouls
2002-08-09 06:34:04 UTC
Hello,
I am using the latest CVS version of Middlegen to generate EntityBeans with
CMP using a MySQL database.
I have tables where there are integer fields that are optional.
Middlegen generates getters and setters for these fields using int instead
of Integer!
So in fact I can not set those fields to null. Using a dummy id (-1) instead
does not
work because the database checks relations and throws an exception if I set
the value to an
unexisting id.
How can I force middlegen to use Integer instead of int ?
/)avid
I am using the latest CVS version of Middlegen to generate EntityBeans with
CMP using a MySQL database.
I have tables where there are integer fields that are optional.
Middlegen generates getters and setters for these fields using int instead
of Integer!
So in fact I can not set those fields to null. Using a dummy id (-1) instead
does not
work because the database checks relations and throws an exception if I set
the value to an
unexisting id.
How can I force middlegen to use Integer instead of int ?
/)avid