[jboss-user] [EJB 3.0] - Re: a unidirectonal one-to many example, anyone can help me?

fhh do-not-reply at jboss.com
Mon Sep 4 11:34:21 EDT 2006


Have you tried


  | 
  | private Set<Employee> employees;
  | 
  | @OneToMany(cascade = CascadeType.PERSIST, fetch=FetchType.EAGER,mappedBy="company")
  | public Set<Employee> getEmployees() {
  | return employees;
  | }
  | 

?

Regards 

fhh

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

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



More information about the jboss-user mailing list