I have defined some default values in my database. They should be used when a table record is inserted and the corresponding field is missing in the ejb call.
This was my understanding of doing this with ejbCreate():
If I want the default value to be used, the record is inserted via an ejbCreate() method where the field is missing. However, doing this, the db field is still empty after the insert and no default value was created for that field.
It's expected.
I tried to discover the insert statement but the DEBUG mode of org.jboss.ejb.plugins.cmp does only show SELECT queries.
It's incorrect.
But I am pretty sure that JBoss inserts NULL for this field (what prevents the da to set the default value).
It's correct.
Any hints? Is this a JBoss configuration issue?
You have no other choice than initializing the fields in the ejbCreate. Not all databases allows you to skip values in INSERT.
Thanks,
-marek
------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
