javax.el.PropertyNotFoundException:在类型org.hibernate.collection.internal.PersistentSet上找不到属性

javax.el.PropertyNotFoundException:在类型org.hibernate.collection.internal.PersistentSet上找不到属性,hibernate,jsf,many-to-many,propertynotfoundexception,Hibernate,Jsf,Many To Many,Propertynotfoundexception,我尝试从很多关联中恢复数据,但我不能,这是我的代码 实体产品: @Entity public class Produit implements Serializable { @Id @Column(name="Produit_ID") @GeneratedValue private Long id; private String dq; private String icForme; private String ich; private String icht; @ManyToMany(c

我尝试从很多关联中恢复数据,但我不能,这是我的代码

实体产品:

@Entity
public class Produit implements Serializable {

@Id
@Column(name="Produit_ID")
@GeneratedValue
private Long id;
private String dq;
private String icForme;
private String ich;
private String icht;

@ManyToMany(cascade = {CascadeType.ALL})
 @JoinTable(name="produit_terminal", 
                joinColumns={@JoinColumn(name="Produit_ID")}, 
                inverseJoinColumns={@JoinColumn(name="Terminal_ID")})
    private Set<Terminal> terminals = new HashSet<Terminal>();

//getter setter
@实体
公共类Produit实现了可序列化{
@身份证
@列(name=“Produit\u ID”)
@生成值
私人长id;
私有字符串dq;
私有字符串格式;
私有字符串ich;
私有字符串icht;
@ManyToMany(cascade={CascadeType.ALL})
@JoinTable(name=“produit\u终端”,
joinColumns={@JoinColumn(name=“Produit_ID”)},
inverseJoinColumns={@JoinColumn(name=“Terminal_ID”)})
private Set terminals=new HashSet();
//吸气剂设定器
实体终端:

@Entity
public class Terminal implements Serializable{

@Id
@GeneratedValue
@Column(name="Terminal_ID")
private Long id;
private String crimpkontakt;
private String equipment;
private String geometrie;
private String dcbt;
private String icb;
private String ak;

@ManyToMany(mappedBy="terminals")
private Set<Produit> produit = new HashSet<Produit>();

//getter setter
@实体
公共类终端实现可序列化{
@身份证
@生成值
@列(name=“Terminal\u ID”)
私人长id;
私人康塔克;
私人弦乐器;
私有字符串几何;
专用字符串dcbt;
专用字符串icb;
私人字符串ak;
@多台(mappedBy=“终端”)
private Set produit=new HashSet();
//吸气剂设定器
类别:ModuleJPADao

public List<Produit> parProduit(String cat){
    cat = "%" + cat + "%";
    Query query = getEntityManger().createQuery( "from "+ getPersistentClass().getSimpleName()
            +" u where u.produit LIKE :cat").setParameter( "cat", cat );
    List<Produit> module = (List) query.getResultList();
    return module;

}
public List parProduit(字符串cat){
cat=“%”+cat+“%”;
Query Query=getEntityManger().createQuery(“from”+getPersistentClass().getSimpleName()
+“u,其中u.produit LIKE:cat”)。设置参数(“cat”,cat);
List模块=(List)query.getResultList();
返回模块;
}
类别:模块服务

public List<Produit> tousModuleProduit(String produit) {

    if(produit!= null){
        return moduleDao.parProduit(produit);
    }
    else{
        return null;
    }
}
公共列表模块produit(字符串produit){
if(produit!=null){
返回模块为o.parProduit(produit);
}
否则{
返回null;
}
}
main-flow.xml

<view-state id="accueil" view="accueil.xhtml">
    <on-render>
        <evaluate expression="moduleService.tousModuleProduit(module.getProduit())"
            result="viewScope.recherche" />

    </on-render>
</view-state>

file.xhtml

 <p:accordionPanel value="#{recherche}" var="car">

                    <p:tab title="IcForme : #{car.icForme}">

                        <h:panelGrid columns="4" cellspacing="20">

                            <p:outputLabel value="ICHT: " />
                            <p:inputText value="#{car.icht}" />

                            <p:outputLabel value="terminals : " />
                            <h:form>
                                <h:dataTable value="#{car.terminals}" var="der" >
                                    <p:column>
                                        <h:outputText value="#{der.geometrie}" />
                                    </p:column>

                                </h:dataTable>
                            </h:form>


                        </h:panelGrid>
        ....

....
我无法获得几何体的值;我得到了以下错误:

javax.el.PropertyNotFoundException: /WEB-INF/flows/main/accueil.xhtml @84,53 value="#{der.geometrie}": Property 'geometrie' not found on type org.hibernate.collection.internal.PersistentSet javax.el.PropertyNotFoundException:/WEB-INF/flows/main/accueil.xhtml@84,53 value=“#{der.geometrie}”:在org.hibernate.collection.internal.PersistentSet类型上找不到属性“geometrie”
你的“汽车豆”在哪里/getter/你是什么意思???非常感谢你的回答。
<h:dataTable value="#{car.terminals}" var="der">
    <p:column>
        <h:outputText value="#{der.geometrie}" />
<h:dataTable value="#{car.terminals.toArray()}" var="terminal">