On Mon, 1 Dec 2003, Emmanuel Dupont wrote:

> All,
> 
> What is the best solution to control the field length of a JSP application
> with OJB.
> 
> The repository. Xml doesn't contain any information about the database field
> length.
> 
> Anyway if it would do it, I would have the same trouble. All the jdo
> attribute I use are String, etc.and in database I have Varchar(20), Varchar
> (4) etc..
> 
> Any help, please...

There is an attribute "length" for the field-descriptors which should help
you (there are also "precision" and "scale" attributes for DECIMAL/NUMERIC
fields).
I have zero knowledge about JDO, but if you can use Torque to initialize
your database then you can also use the "size" attribute of the column
tags.

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to