[jboss-user] [EJB 3.0] - cannot simultaneously fetch multiple bags

rahb do-not-reply at jboss.com
Sat Sep 20 11:36:33 EDT 2008


Hi All,

javax.persistence.PersistenceException: org.hibernate.HibernateException: cannot simultaneously fetch multiple bags

I have a class and traversing is in this way 

ABC Class ----> RDefination ---> RDetail

I have @oneToMany relationship and fetching strategy as Lazy. I have used list..


@OneToMany
	@IndexColumn(name="INDEX_COL")
	public List getRules() {
		return rules;
	}


@OneToMany 
	@IndexColumn(name="INDEX_COL")
	public List getRDetails() {
		return ruleDetails;
	}

still it is giving me an error.

Thanks,
Rahul

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

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



More information about the jboss-user mailing list