Like the article? Be sure to subscribe to our RSS feed and follow us on Twitter to stay up on recent content.

So, you must declare those by adding following line in the top of ejb bean class:

* @jboss.unknown-pk class="java.lang.Integer"
 *   read-only="true"
 *   read-time-out="6000"
 *   column-name="article_id"
 *   not-null="true"
 *      jdbc-type="INTEGER"
 *      sql-type="int"

It will resolved problem when deloying cmp to Jboss server 5.0.0.CR1 with error:…. “cmp-field” must match (field-name, read-only? read-time-out?, conlum-name?, not-null?, ((jdbc-type, sql-type)|(property+))?)…