Okay I found another problem inserting into table with the EJB that has DVC as it's primary key. The DVC field is broken into two different columns in the database these columns are also used for CMR fields. JBoss seem to work just fine if the CMR columns are also CMP columns. But if CMR column is one of the property of a CMP column that is a DVC, JBoss doesn't seem to recognize this and will duplicate the column table name on insert. That is one set of column names for the CMP field then another set for the CMR field even though these columns are the same. If the CMP field is not a DVC, jboss correctly recognize this and will not duplicate the column name on insert.