Update of /cvsroot/xdoclet/xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16655/modules/jboss/src/xdoclet/modules/jboss/ejb
Modified Files: JBossRelationTagsHandler.java Log Message: Fixed incorrect jdbc-type/sql-type mapping for jboss.relation (XDT-1084) Index: JBossRelationTagsHandler.java =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb/JBossRelationTagsHandler.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** JBossRelationTagsHandler.java 31 Aug 2004 19:33:12 -0000 1.11 --- JBossRelationTagsHandler.java 2 Feb 2005 21:56:20 -0000 1.12 *************** *** 21,24 **** --- 21,26 ---- private String currentFKRelField = null; private String currentFKCol = null; + private String currentJdbcType = null; + private String currentSqlType = null; public String relationTableAttribute(Properties attributes) throws XDocletException *************** *** 298,301 **** --- 300,328 ---- } + public void ifHasJdbcType(String template, Properties attributes) throws XDocletException + { + if (currentJdbcType != null) { + generate(template); + } + } + + public String jdbcType() + { + return currentJdbcType; + } + + + public void ifHasSqlType(String template, Properties attributes) throws XDocletException + { + if (currentSqlType != null) { + generate(template); + } + } + + public String sqlType() + { + return currentSqlType; + } + /** * Checks if the current relation should use a relation table mapping. This can occurs if the current relation is *************** *** 534,539 **** --- 561,569 ---- currentFKRelField = fktag.getAttributeValue("related-pk-field"); currentFKCol = fktag.getAttributeValue("fk-column"); + currentJdbcType = fktag.getAttributeValue("jdbc-type"); + currentSqlType = fktag.getAttributeValue("sql-type"); generate(template); } } + } ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel