db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sperlich, Tino" <t.sperl...@hpc-hamburg.de>
Subject use of schema.xml varchar sizes
Date Tue, 06 Apr 2004 12:55:45 GMT
Hi all,

in the torque db schema there are 
size attributes for varchars:
<column name="U_VERSION" javaName="UVersion" required="false" type="VARCHAR" size="10"

These are translated into java string 
objects in the peer classes, 
and the size information is gone. 

Is there a way to have the generated 
classes consider this size when writing
things back to db, i.e. checking for size
and abbreviating/trimming? 

since the columns size 
come from the db model, strings with 
more chars will make the inserts/updates

there should be size checking on the 
application side, too, but an automatic
check in the db-layer would add robustness.

What do you think?



To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message