On Mon, 2003-07-14 at 15:47, Andy Jefferson wrote: > To get the <sql-type> included in the output file, you seem to have to > add the @jboss.jdbc-type tag to your class as well as the > @jboss.sql-type tag. > Is there a good reason for this, or is it a bug ?
Presumably it's because the database (i.e. SQL) type corresponding to a particular JDBC datatype may differ depending on what database you're using, so needs to be specified. At any rate, the DTDs declare the cmp-field element as <!ELEMENT cmp-field (field-name , column-name , (jdbc-type , sql-type)?)> for 2.4 and <!ELEMENT cmp-field (field-name , column-name , (jdbc-type , sql-type)? , nullable?)> for version 3 i.e. the jdbc-type and sql-type elements must either both be present, or neither of them. The XDoclet module is just being consistent with this. So, not a bug :-) Andrew. ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
