[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Custom ejbCreate() generates bad INSERT-Statement (4.0.2

Oyabun do-not-reply at jboss.com
Fri Aug 4 05:05:46 EDT 2006


I found something in the EJB 2.0 spec 14.1.2

anonymous wrote : 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 to

INSERT INTO PERSON(NAME, GENDER, AGE) VALUES ("Alex","m", 0)	

Unfortunatly I couldn't find anything that manipulates the generated INSERT-Statements.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963114#3963114

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963114



More information about the jboss-user mailing list