@Component
@Entity
@Table(name=\"menu\")
@Configurable
public class Menu implements Serializable{
....
@OneToMany(mappedBy=\"menu\", fetch=Fetc
The elements of a Set cannot be accessed by index. You will need to add methods which return a List wrapping your set.
@Component
@Entity
@Table(name="menu")
@Configurable
public class Menu implements Serializable{
....
@OneToMany(mappedBy="menu", fetch=FetchType.EAGER)
private Set voceMenus;
public Set getVoceMenus() {
return voceMenus;
}
public void setVoceMenus(Set voceMenus) {
this.voceMenus = voceMenus;
}
//bind to this
public List getVoceMenusAsList(){
return new ArrayList(voceMenus);
}
.....
}
JSP:
Menu id
......
.....