I was using beta2 and think the @jboss.unknown-pk has been added in beta3...
Correct?
Markus Garscha writes:
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 -------------------------------------------------------------------------------

-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to