2012-05-25 3 views
0

이음새로 최대 절전 모드 필터를 사용하려고했습니다. 그러나 예외이음새가있는 최대 절전 모드 필터

17:09:37,154 ERROR [STDERR] org.hibernate.HibernateException: No such filter configured [contributorTypeFilter] 
     at org.hibernate.impl.SessionFactoryImpl.getFilterDefinition(SessionFactoryImpl.java:965) 
     at org.hibernate.impl.SessionImpl.enableFilter(SessionImpl.java:1032) 
     at org.jboss.seam.persistence.HibernateSessionProxy.enableFilter(HibernateSessionProxy.java:133) 

엔티티 이하

@OneToMany(cascade = CascadeType.ALL, mappedBy = "wfEntity") 
    @OrderBy(value="orderNum") 
    @JoinTable 
    @FilterJoinTable(name = "ccTypeFilter", condition = "'CC' == WF_TYPE") 
    private List<WFContEO> wfCCRoles; 

    @OneToMany(cascade = CascadeType.ALL, mappedBy = "wfEntity") 
    @OrderBy(value="orderNum") 
    @JoinTable 
    @FilterJoinTable(name = "contTypeFilter", condition = "'CONT' == WF_TYPE") 
    private List<WFContEO> wfConts; 

DAOImpl

public EntityEO findById(Long id) { 
    getSession().enableFilter("contTypeFilter"); 
    getSession().enableFilter("ccTypeFilter"); 
    return (EntityEO) getSession(). 
      createCriteria(EntityEO.class).         createCriteria("wf").add(Restrictions.idEq(wfId)).uniqueResult(); 
    } 

필터있게 때 오류가 발생 던져. FilterJoinTable 사용 방법에 대한 설명서가 있습니까? 모든 XML 구성이 필요합니까?

답변

0

@JoinTable을 제거하면 예외가 발생하지 않습니다.