-
1. Re: How to map EJB names to table names of my choosing?
b0howard Dec 22, 2002 3:50 PM (in response to fumeishi)Hi Fumeishi:
I'm a new guy too.
The file "jbosscmp-jdbc.xml" is roughly equivalant to the "weblogic-cmp-rdbms-jar.xml". I can't be certain because I don't know weblogic, but jbosscmp-jdbc.xml does associate table names with ejb entities.
You can alter this file directly.
But you should be using something like XDoclet to prepare your deployment descriptors.
1 - In you ejb enity java file, include the xdoclet tag:
@jboss:table-name table-name="yourTableName"
in the class javadoc comment block.
2 - Run xdoclet and the jbosscmp-jdbc.xml file will now
have yourtable name associated with your ejb entity.
See the template files from the free document web-pages.
Don't have XDoclet? Your can find it at sourceforge.net
Cheer's
Bruce -
2. Re: How to map EJB names to table names of my choosing?
fumeishi Dec 22, 2002 10:14 PM (in response to fumeishi)Bruce.
Thank you very much. I really appreciate your advice and that you took the time to respond.
I think I've got to learn XDoclet, but it sounds well worth it. Thanks once again.
arigatou. (thank you)