Alex,

Perhaps you could share with us what you found out about the lifecycle of the
Persistent interface?  I know I'm going to have to implement it soon, so it
would be a great help to get some background info.

Thanks.

--
Chris Bonham
President/CEO
Third Eye Consulting, Inc.
[EMAIL PROTECTED]
http://www.thirdeyeconsulting.com
317.823.3686
317.823.0353 (FAX)

Quoting Li, Alex ([EMAIL PROTECTED]):
> Hi,
> 
> Consider the following mapping, if the field "SCALE" has a NULL value in the
> table, I will get a NullPointerException when cast it into Integer.
> This kind of exception is really hard to trace. 
> 
> Can we do something to specify a DEFAULT value ? Otherwise people have to
> declare it as String and cast it manually.
> 
>       <field name="scale" type="integer">
>               <sql name="SCALE" type="numeric"/>
>       </field>
> 
> And, is it possible to add more documents about Persistent interface? It
> took me some time to figure out the life cycle. If there is a state diagram
> about it, it will be great.
> 
> Thanks.
> 
> By the way, Castor rocks. I tried it for one week, now it is in our Product
> Development. Very cool.
> 
> -- Zhongling "Alex" Li
> 
> ----------------------------------------------------------- 
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to