[jrf-user] setInsertOnly and writeOnce
Brought to you by:
joncrlsn
|
From: Tom M. <tm...@li...> - 2002-11-16 04:11:33
|
I would like to know the relationship between AbstractColumnSpec.writeOnce() in the JRFBaseSchema.dtd used to generate database objects and SQL, and TimeStampColumnSpecDbGen.setInsertOnly(). It appears that these are intended to do the same thing, that is, write a column only on insert, such as a date created Timestamp (which is what I want to do). writeOnce is a boolean in net.sf.jrf.domain.PersistentObjectDynaProperty, so I assume it only applies if one is using Dynabeans. It does not seem to do anything on standard domains. I think what may be missing is an insertOnly attribute for Column in JRFBaseSchema, and then the code in BaseGenerator to supply setInsertOnly for the column in the generated domain. Or is there some other explanation? -- Tom Miller Miller Associates, Inc. tm...@li... 641.469.3535 Phone 413.581.6326 FAX |