Hi,

something went wrong! is this perhaps an error in xdoclet?

Bean.java:
...
* @jboss.unknown-pk
*    class="java.lang.Integer"
*    column-name="id"
*    jdbc-type="INTEGER"
*    sql-type="INTEGER"
* @jboss.entity-command
*    name="pk-sql"
* @jboss.entity-command-attribute
*    name="pk-sql"
*    value="SELECT max(id)+1 FROM TestEntity"
....

generates jbosscmp-jdbc.xml:
...
<unknown-pk>
  <unknown-pk-class>java.lang.Integer</unknown-pk-class>
  <column-name>id</column-name>
  <jdbc-type>INTEGER</jdbc-type>
  <sql-type>class="java.lang.Integer" column-name="id" jdbc-type="INTEGER"</sql-type>
</unknown-pk>
...

there ist a fault in <sql-type>! 
i use
xdoclet1.2b3 (cvs HEAD)
jdk1.4.1

thanx
markus

* Simone Milani <[EMAIL PROTECTED]> [2003-02-20 01:00]:
> Yes, it does.  Not documented though.
> 
> Make sure you PK type is object and also add this tag:
> jboss:persistence auto-increment="true"

-- 
-------------------------------------------------------------------------------
 Markus Garscha                    
 Germany                                                  pgp-keyid: 0xEE18AF3B  
-------------------------------------------------------------------------------

Attachment: msg04731/pgp00000.pgp
Description: PGP signature

Reply via email to