From: mprzysucha <nu...@jb...> - 2005-08-18 18:55:27
|
First of all, sorry for my english - it is not perfect. I have the same problem and i can't solve it. I've done just like you wrote above. My code is more less something like this: | | * @ejb:pk class="java.lang.Integer" | * generate="false" | * @jboss.unknown-pk class="java.lang.Integer" | * auto-increment="true" | ... | public abstract class ... { | ... | * @ejb.persistence column-name="id" | * @jboss.persistence auto-increment="true" | ... | public abstract java.lang.Integer getId(); | ... | } | and the result in file jbosscmp-jdbc.xml is: | <cmp-field> | <field-name>id</field-name> | <column-name>id</column-name> | | <jdbc-type>VARCHAR</jdbc-type> | <sql-type>int</sql-type> | | <auto-increment/> | </cmp-field> | The problem is during deploying. At the console JBoss has written: | jbosscmp-jdbc.xml process error. Line: 31. Error message: The content of element type "cmp-field" must match "(field-name,read-only?,read-time-out?,column-name?,not-null?,((jdbc-type,sql-type)|property+)?)". | it's looking like some DTD and as you see it shoudn't be <auto-increment/> element in <cmp-field> element. So why XDoclet has generated such a file :?: Did you solve this problem :?: I would be grateful if you will write exacly how i should solve it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3890494#3890494 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3890494 |