Perhaps I was going down the wrong road here... :-) I want to have a jbosscmp-jdbc.xml file that implements a relationship without any foreign-key constraints. I want it to use a table to map the relationships. I want the following:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN" "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd"> <jbosscmp-jdbc> <SNIPPED STUFF HERE...> <relationships> <ejb-relation> <ejb-relation-name>parent</ejb-relation-name> <relation-table-mapping> <table-name>forum_message_parent</table-name> </relation-table-mapping> </ejb-relation> </relationships> </jbosscmp-jdbc> but I can't see how to get this in xdoclet... what you have may be correct, but I want to say something like: /** * @jboss:relation * fk-constraint="false" * mapping-table="forum_message_parent" */ because if you have a recursive relationship, you can't use foreign keys and need to use a table. Is such a facility available? Thanks, Peter. ________________________________________________________________________ E-mail is an informal method of communication and may be subject to data corruption, interception and unauthorised amendment for which Digital Bridges Ltd will accept no liability. Therefore, it will normally be inappropriate to rely on information contained on e-mail without obtaining written confirmation. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ________________________________________________________________________ _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
