users
[Top] [All Lists]

Re: [cinjug-users] Hibernate and database default values

To: Chris Nelson <cnelson4eii@xxxxxxxxx>
Subject: Re: [cinjug-users] Hibernate and database default values
From: Bill Manuel <bill.manuel@xxxxxxxxx>
Date: Thu, 21 Jul 2005 15:27:39 -0400
Cc: users@xxxxxxxxxx
Delivered-to: mailing list users@cinjug.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=HLxn4zr/ZCn19ylqh1h9uU9lTlckAWchfmFERIKeK57hk7xKUOPOACbZkZ9fZN5V0nADo66LARue6kjm4IV0k7tYIK9PAZ6V6L0sWQRSgklclnTKHP0ZcafLkMcRkOM5Y9klBavYYeCH27nGMMryICGosY+JGbTupr5wvRSg9qI=
In-reply-to: <20050720213023.33033.qmail@web42005.mail.yahoo.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <bd171aba05072014081a13ca1b@mail.gmail.com> <20050720213023.33033.qmail@web42005.mail.yahoo.com>
Reply-to: Bill Manuel <bill.manuel@xxxxxxxxx>
Chris,

Thanks.  Mapping with insert="false" did the trick.

On 7/20/05, Chris Nelson <cnelson4eii@xxxxxxxxx > wrote:
Did you mapping it with insert="false"?  I believe
this would tell it to leave it out of the insert
statement entirely.

--- Bill Manuel <bill.manuel@xxxxxxxxx> wrote:

> Does anyone know how to make hibernate accept the
> default values of the
> database on an insert? The column in the database is
> not nullable, so when I
> set the value of the property to null, the database
> crys becasue of the null
> value.
>
> Any help is appreciated.
>
> Thanks
> Bill Manuel
>




____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs


<Prev in Thread] Current Thread [Next in Thread>