こんにちは、多数の結合を持つユーザーとグループのサンプル例があります。しかし、ユーザーでコレクショングループの属性を取得する方法がわかりません。私のコードは次のとおりです。
<p:dataTable var="user" value="#{usergestion.tableusers}" editable="true" >
<p:column headerText="username" filterMatchMode="contains" filterBy="#{user.username}">
<p:commandLink value="#{user.username}" action="#{usergestion.insertaaa()}"/>
</p:column>
<p:column headerText="nom" filterMatchMode="contains" filterBy="#{user.nom}">
<h:outputText value="#{user.nom}" />
</p:column>
<p:column headerText="groupe">
<h:outputText value="#{user.groupsCollection.get(0).groupname}" />
</p:column>
</p:dataTable>
user.groupsCollection.get(0).groupname
ユーザーのグループを表示するにはどうすればよいですか?