Hi, when I call and oABean.getBBeans(), on an ABean loaded from DB, I obtain a "null" Set [on DB exist a C-record which link loaded A-record with B-records]. Any Idea?
package test.ejb.entity; import java.util.*; import javax.persistence.*; import javax.ejb.*; @Entity @Inheritance @Table(name="a") @NamedQuery( name="ABean.findAll", query="SELECT o FROM ABean o ORDER BY o.m_sInfo DESC" ) public class ABean { //extends IdEntityBean { @Id @SequenceGenerator(name = "ASeq", sequenceName = "a_id_seq") @GeneratedValue(strategy = GenerationType.AUTO, generator = "ASeq") Integer id; public Integer getId() { return id;} @Column(name="info") String m_sInfo; @PrePersist public void setCreateInfo() { m_sInfo = ""; } public String getInfo() { return m_sInfo;} public void setInfo(String info) { m_sInfo = info;} // table "c": link A<->B @ManyToMany @JoinTable(name="c", [EMAIL PROTECTED](name="idA")}, [EMAIL PROTECTED](name="idB")} ) Set BBeans; public Set getBBeans() { return BBeans;} public void setBBeans(Set BBeans) { this.BBeans=BBeans;} } TIA Roberto Colmegna View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930583#3930583 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930583 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user