This content has been marked as final.
Show 1 reply
-
1. Re: Custom ejbCreate() generates bad INSERT-Statement (4.0.2
oyabun Aug 4, 2006 5:05 AM (in response to oyabun)I found something in the EJB 2.0 spec 14.1.2
The Container must ensure that the values of the container-managed fields are set to the Java language
defaults (e.g. 0 for integer, null for pointers) prior to invoking an ejbCreate(...) method on an
instance.
I also have to correct my prior post. NUMBER-Columns are initialized with 0, while VARCHAR2-Columns with NULL. So the INSERT for my example:ejbCreate("Alex", "m")
translates toINSERT INTO PERSON(NAME, GENDER, AGE) VALUES ("Alex","m", 0)
Unfortunatly I couldn't find anything that manipulates the generated INSERT-Statements.