ホームページにデータベースのデータ一覧を表示したいのですが、以下のエラーが出ます
org.springframework.expression.spel.SpelEvaluationException: EL1004E:(pos 8): メソッド呼び出し: メソッド listAnnonce() が sujet.projet.collocation.domain.Annonce タイプで見つかりません
ユーザー.java
@Entity
@Table( name = "utilisateur" )
public class UserEntity extends BaseEntity {
// attribut
@OneToMany( mappedBy = "annonceUser" )
private List<Annonce> annonce;
public List<Annonce> getAnnonce() {
return annonce;
}
public void setAnnonce( List<Annonce> annonce ) {
this.annonce = annonce;
} //getter setter
}
インターフェイス.java
public List<Annonce> liste();
InterfaceImpl.java
public List<Annonce> liste() {
return annonceDao.findAll();
}
main-flow.xml
<var name="annonce" class="sujet.projet.collocation.domain.User"/>
<view-state id="accueil" view="accueil.xhtml" model="annonce">
<on-render>
<evaluate expression="annonce.list()"/>
</on-render>
<transition on="toauthentification" to="authentification" />
</view-state>
アナウンス.java
@Entity
@Table( name = "annonce" )
public class Annonce extends BaseEntity {
//attribut
@ManyToOne
@JoinColumn( name = "annonceUser" )
private User annonceUser;
public User getAnnonceUser() {
return annonceUser;
}
public void setAnnonceUser( User annonceUser ) {
this.annonceUser = annonceUser;
}
//getter&setter
}
誰かが私を助けたり、解決策を提案してくれませんか?