Why not put these sizes in JNDI and check them in the set*() methods? Thats
another option.
Barry
> -----Original Message-----
> From: Thomas Munro [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 14, 2000 2:26 AM
> To: Barry Fujii
> Cc: [EMAIL PROTECTED]
> Subject: Datatype size restrictions
>
>
> Barry
>
> Yeah I've created all the Oracle tables myself, using VARCHAR(n) with
> sizes that seemed sensible.
>
> One thing that bothers me is that I can't really see how to control the
> size of the String 'declaratively'. I was thinking of maybe making a
> datatypes.properties file, which would specify the max size of all the
> Strings, and then make the bean check those lengths in the setXXX()
> methods. Then I suppose I should through an exception if it's too long.
>
> Any comments on that approach, Barry, anybody?
>
> Thomas Munro
> Software Engineer
> Grey Interactive Paris
>
>