I am using Jonas 2.
I have a CMP entity bean.
One of the columns is of type "int".
This column allows nulls, so in my CMP bean, I
represent it as an "Integer" object rather than an "int" primitive.
Whenever Jonas loads a row into an entity bean, if
the column contains NULL, then my Integer member variable is set to an Integer
object of value "0", rather than just leaving it as NULL.
Question: Is this behavior intentional, or a bug?
How can I make sure that if the column is null, then my member variable Integer
reference is also null?
Thank you,
Bryan
|
- Re: NULL Integer being set to 0 in CMP bean? Bryan Field-Elliot
- Re: NULL Integer being set to 0 in CMP bean? Vandome Gérard
- Re: NULL Integer being set to 0 in CMP bean? Bryan Field-Elliot
- Re: NULL Integer being set to 0 in CMP bean? Hélène JOANIN