3 Replies Latest reply on Jan 24, 2007 4:51 PM by Pete Muir

    Can use Set<> for @OneToMany property

    Dan Liu Apprentice

      The following code works fine:

       public List<Review> getReviews() {
       return reviews;
       }
      
       public void setReviews(List<Review> reviews) {
       this.reviews = reviews;
       }
      

      in my jsf page, I have:
       <h:outputText value="#{review.title}" />
      


      However, if I change List to Set, it says can't find property #{review.title}. I don't understand why this happens. Has anyone seeing the same problem?