Adena Galinsky wrote:
>
> Some of our optional fields are represented as primitive types (int, long
> etc) in our entity beans and in the (Oracle) database.
> What is the standard way of indicating that the value was left blank?  We
> have created our own standard (-1 = null), but if there's a standard way to
> handle this, we'd like to change it.

Change your entity beans to use java.lang.Integer in place of 'int' whenever
a DB column allows NULL.

> thanks,
> Adena
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

--
________________________________________________________________________________

Evan Ireland              Sybase EAServer Engineering        [EMAIL PROTECTED]
                            Wellington, New Zealand               +64 4 934-5856

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to