Hi all,
with JMIX v1.4.2
I have an error with the add action and a Composite Table (Many to Many)
composition was generated by JMIX Studio between User and Conference Class
Here are the code
class conference{
....
@JoinTable(name = "CONFERENCE_USER_LINK",
joinColumns = @JoinColumn(name = "CONFERENCE_ID"),
inverseJoinColumns = @JoinColumn(name = "USER_ID"))
@ManyToMany
private List<User> speakers;
...}
class User {
...
@JoinTable(name = "CONFERENCE_USER_LINK",
joinColumns = @JoinColumn(name = "USER_ID", referencedColumnName = "ID"),
inverseJoinColumns = @JoinColumn(name = "CONFERENCE_ID", referencedColumnName = "ID"))
@ManyToMany
private List<Conference> conferences;
...}
And here is the add action
<instance id="conferenceDc"
class="fr.utbm.crunch.cruncheventmanager.entity.Conference">
<fetchPlan extends="_base">
<property name="event" fetchPlan="_base"/>
</fetchPlan>
<collection id="speakersDc" property="speakers" />
<loader/>
</instance>
...
<groupTable id="usersTable" height="500px" width="100%" dataContainer="speakersDc">
<actions>
<action id="addAction" caption="Ajouter" type="add"></action>
<action id="exclude" type="exclude"/>
</actions>
<buttonsPanel alwaysVisible="true">
<button id="addBtn" action="usersTable.addAction"/>
<button id="usersTableExcludeBtn" action="usersTable.exclude"/>
</buttonsPanel>
<columns>
<column id="civility"/>
<column id="firstName"/>
<column id="lastName"/>
<column id="username"/>
</columns>
</groupTable>
When I click Add button I have this error