Do you mean the table layouts?
In this example we have innovCatalogue table, and innoContents table. The catalogue is the parent, contents is the child.
This is the offending Roo generated controller code for innovCalogue edit. I am reading this as pulling all the contents rows, which may be 1000s.
Code:
void InnovCataloguesController.populateEditForm(Model uiModel, InnovCatalogues innovCatalogues) {
uiModel.addAttribute("innovCatalogues", innovCatalogues);
uiModel.addAttribute("innovcataloguerelationshipses", innovCatalogueRelationshipsRepository.findAll());
uiModel.addAttribute("innovcontentses", innovContentsRepository.findAll());
In the jspx I am reading the innovContents to be in a dropdown, which wont work. I am thinking it should be a tag that shows the current content, and then offers a button to up up a selection form.
This is one reason why I am thinking it best to move to Spring Web Flow. Webflow generated forms for entities would make a good plugin, or option for the web command.
Here are the table definitions:
[/code]
<table name="innov_catalogues">
<column name="catalogue_id" primaryKey="true" required="true" scale="0" size="10" type="4,INT"/>
<column name="name" primaryKey="false" required="true" scale="0" size="255" type="12,VARCHAR"/>
<column name="memo" primaryKey="false" required="true" scale="0" size="2000" type="12,VARCHAR"/>
<column name="catalogue_content_id" primaryKey="false" required="false" scale="0" size="10" type="4,INT"/>
<column name="catalogue_status_id" primaryKey="false" required="true" scale="0" size="10" type="4,INT"/>
<column name="catalogue_type_id" primaryKey="false" required="true" scale="0" size="10" type="4,INT"/>
<column name="catalogue_pre" primaryKey="false" required="true" scale="0" size="255" type="12,VARCHAR"/>
<column name="catalogue_post" primaryKey="false" required="true" scale="0" size="255" type="12,VARCHAR"/>
<column name="content_pre" primaryKey="false" required="true" scale="0" size="255" type="12,VARCHAR"/>
<column name="content_post" primaryKey="false" required="true" scale="0" size="255" type="12,VARCHAR"/>
<foreign-key foreignTable="innov_contents" name="innov_catalogues_ibfk_1" onDelete="none" onUpdate="none">
<option key="exported" value="false"/>
<reference foreign="content_id" local="catalogue_content_id"/>
</foreign-key>
<foreign-key foreignTable="innov_catalogue_relationships" name="innov_catalogue_relationships_ibfk_1" onDelete="none" onUpdate="none">
<option key="exported" value="true"/>
<reference foreign="from_catalogue_id" local="catalogue_id"/>
</foreign-key>
<foreign-key foreignTable="innov_catalogue_relationships" name="innov_catalogue_relationships_ibfk_2" onDelete="none" onUpdate="none">
<option key="exported" value="true"/>
<reference foreign="to_catalogue_id" local="catalogue_id"/>
</foreign-key>
<unique name="PRIMARY">
<unique-column name="catalogue_id"/>
</unique>
<index name="cat_status">
<index-column name="catalogue_status_id"/>
</index>
<index name="cat_type">
<index-column name="catalogue_type_id"/>
</index>
<index name="content_id_index">
<index-column name="catalogue_content_id"/>
</index>
</table>
<table name="innov_contents">
<column name="content_id" primaryKey="true" required="true" scale="0" size="10" type="4,INT"/>
<column name="name" primaryKey="false" required="true" scale="0" size="80" type="12,VARCHAR"/>
<column name="selected" primaryKey="false" required="true" scale="0" size="10" type="4,INT"/>
<column name="content" primaryKey="false" required="true" scale="0" size="3000" type="12,VARCHAR"/>
<column name="content_type_id" primaryKey="false" required="true" scale="0" size="10" type="4,INT"/>
<column name="memo" primaryKey="false" required="true" scale="0" size="2000" type="12,VARCHAR"/>
<foreign-key foreignTable="innov_catalogues" name="innov_catalogues_ibfk_1" onDelete="none" onUpdate="none">
<option key="exported" value="true"/>
<reference foreign="catalogue_content_id" local="content_id"/>
</foreign-key>
<unique name="PRIMARY">
<unique-column name="content_id"/>
</unique>
</table>
[/code]