facebook

ejb relations with xdoclet

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #231135 Reply

    chrisgandi
    Member

    when you define a many to many bidirectional relationship, xdoclet creates a new table to link the 2 related tables.

    My question is how to you define the name for this generated table.

    I am suing a jboss 4.0 server and mysql database

    thanks
    chris 😕

    #231177 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, this is a general case question, moving so community can help out.

    #231259 Reply

    Greg
    Member

    Chris,

    Try the @jboss.relation-table tag to name your relation table. So it would be something like:

     * @jboss.relation-table
     *     table-name = "xxx"
     *     ...

    Or whatever else you find appropriate from the tags found here:
    http://xdoclet.sourceforge.net/xdoclet/tags/jboss-tags.html#@jboss_relation-table__0__1_

    Note that these tags apply to a CMR field in the EJB.

    #231278 Reply

    chrisgandi
    Member

    thanks i willl try that

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: ejb relations with xdoclet

You must be logged in to post in the forum log in