Return-Path: Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 22274 invoked from network); 11 Feb 2003 15:48:53 -0000 Received: from grey.subnet.at (HELO subnet.at) (193.170.141.20) by daedalus.apache.org with SMTP; 11 Feb 2003 15:48:53 -0000 Received: from ivy ([193.170.141.125]) by subnet.at ; Tue, 11 Feb 2003 16:48:52 +0100 Content-Type: text/plain; charset="iso-8859-1" From: peter riegersperger Organization: subnet To: "Turbine Torque Users List" Subject: Re: Dose Torque enforce columns set to required = "true" ? Date: Tue, 11 Feb 2003 16:51:40 +0100 User-Agent: KMail/1.4.3 References: <001301c2d1e4$f69a2100$090a0a0a@D36ND411> In-Reply-To: <001301c2d1e4$f69a2100$090a0a0a@D36ND411> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302111651.44716.rick@subnet.at> X-Rcpt-To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 11 February 2003 16:48, mark kummerer wrote: > Hello All: > > I'm new to Torque and have an instance where the project-schema.xml > file have columns set as required=3D"true" and generated the base and m= ap > classes. Upon inserting a new object where the column is null, an sql > exception is thrown. I would expect the doInsert to check for not null > and throw an exception before the sql is generated. Is this the > expected results? Is the required attribute only used for table > generation? as far as my observations go, null values are not checked before trying t= o=20 insert them into the db. in my opinion, this is the right place for the c= heck=20 (the database server is responsible for database consistency, not your=20 application) rick - --=20 |- | peter riegersperger |- | ein windows switcher tagebuch: | http://forum.subnet.at/viewforum.php?f=3D22 |- | subnet | platform for media art and experimental technologies |- | http://www.subnet.at/ |- | muehlbacherhofweg 5 // 5020 salzburg // austria |- | fon/fax +43/662/842 897 |-=20 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+SRwQIMP39JYOy9IRAgNhAJ4s9hOOVdX5of4INxMlrordHSUSfwCeND0q xB5zLF+PcCxVdji9jlszMOU=3D =3DQ+DU -----END PGP SIGNATURE-----