> Bryan Field-Elliot wrote:
>
> 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?
Strange, because it should work as you mention (the field is null if the
column contains NULL). Can you please indicate which database and jdbc
driver your are using, as it can be a jdbc driver problem?
--
G�rard Vandome Evidian
[EMAIL PROTECTED] phone: 33 4 76 29.75.67
http://www.objectweb.org http://www.evidian.com
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".