Ah, no. Sorry. What I have is a nullable field that is an optional foreign key in the database. So, I do not have to supply a value, but if I do, it will be validated against the parent table.
At row creation time, I do not know what that value should be, so I want it to be null, but it appears in CMP2 that *every* field must be persisted at insert time. In JBuilder 6, the Data Source browser of the EJB Designer component allows you to edit column CMP properties, and there is an option to ignoreOnInsert which exactly what I want. However, the feature seems to have no effect on the deployment XML. Thanks. //Nicholas --- Alex Loubyansky <[EMAIL PROTECTED]> wrote: > Hello Nicholas, > > could you be more specific? > do you mean the field should be updated by the db? > > alex > > Monday, January 06, 2003, 2:18:50 PM, you wrote: > > N> How can I define a CMP2 field to only persist in > N> UPDATEs and not the initial INSERT ? > > N> Thanks. > > N> //Nicholas > > N> ===== > N> Nicholas Whitehead > N> Home: (973) 377 9335 > N> Cell: (201) 615 2716 > N> Work: (212) 622 5639 > N> [EMAIL PROTECTED] > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ===== Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user