Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As said by Pete Muir, Seam lead developer</p> <blockquote> <p>Seam-gen does not support @ManyToMany relationship</p> </blockquote> <p>It does not generate the User Interface when using @ManyToMany. Although Seam-gen makes your life easier, sometimes, you have to do your job manually.</p> <p>Before going on</p> <ol> <li>Seam-gen uses Hibernate's reverse-engineering-tool</li> <li>If a foreign key <strong>is missing</strong> in the table, Seam-gen can not suppose one table is related to another</li> </ol> <p>...</p> <p>So my advice is: </p> <ol> <li>Split your @ManyToMany relationship into @OneToMany - @ManyToOne relationship</li> <li>Set up reverse-engineering configuration</li> </ol> <p>The reverse-engineering configuration file that Seam-gen uses is resources/seam-gen.reveng.xml inside the generated project.</p> <p>Maybe you want to see</p> <p><a href="https://www.hibernate.org/hib_docs/tools/reference/en/html/reverseengineering.html" rel="nofollow noreferrer">Controlling reverse engineering</a></p> <p><a href="https://www.hibernate.org/383.html" rel="nofollow noreferrer">Reverse engineering support in database and drivers</a></p> <p><strong>Added to original answer</strong></p> <p>Seam uses Ant to generate your app. Its build.xml file is located in the &lt;SEAM_HOME&gt;/seam-gen/build.xml</p> <p>There, you will see a target called <strong>generate-ui</strong> as follows</p> <pre><code>&lt;target name="generate-ui" </code></pre> <p>It uses a Ant Tool called <a href="https://www.hibernate.org/hib_docs/tools/reference/en/html/ant.html#hbmtemplate" rel="nofollow noreferrer">hbmtemplate</a>. It is a Template based Engine in which <strong>can be controlled by a user provided template or class</strong>. So if you want a custom behavior, you should provide your own Freemarker template. In &lt;SEAM_HOME&gt;/seam-gen/view directory, you can see a lot of Template files (.flt extension)</p> <p>regards,</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload