This content has been marked as final.
Show 2 replies
-
1. Re: mysql and default values
nikolai Jun 11, 2003 3:23 AM (in response to ittay)try to change your CMP definition:
here is how I did it:
[jbosscmp-jdbc.xml]
<ent ity>
...
<cmp-field>
<field-name>created</field-name>
<read-only>true</read-only>
<column-name>created</column-name>
<not-null/>
<jdbc-type>TIMESTAMP</jdbc-type>
<sql-type>TIMESTAMP WITHOUT TIME ZONE DEFAULT now()</sql-type>
</cmp-field>
... -
2. Re: mysql and default values
ittay Jun 12, 2003 6:37 AM (in response to ittay)thanx for the help, and i'll try this tip, but isn't there a way of telling jboss to just not insert null values (or, at least, just tell it that a certain value has a default in the db).
thanx,
ittay