Hey guys,

I was wondering,

Assuming I have an entity with one_to_many relationship, i.e:

  | class X {
  |   String name;
  |   Collection<Y> yList;
  | 
  |    @Column(name="NAME")
  |    public long getName() {
  |        return name;
  |    }
  |     
  |     public void setName(String name) {
  |         this.name = name;
  |     }
  | 
  | 
  |   @OneToMany(mappedBy="x")
  |   public Collection<Y> getyList() {
  |       return yList;
  |   }
  | 
  |   public setYList(Collection<Y> yList) {
  |     this.yList = yList;
  |   }
  | }
  | 


Assuming I'd like to build some web GUI for class X, but except simple fields 
(such as name) I'd also like to set multiple Y entities to the collection  of 
the X class through a WEB interface,

Does Seam supports this easily? or i'll have to create a 'multiple selectbox' 
and pass IDs of Y entities, load the Y entities and set them into the 
collection by myself?

Thanks a lot,

Asaf.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956635#3956635

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956635


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to