Hi All :)
I am using Jboss 4.0.5, with integrated Hibernate 3 developing an EJB3 project.
When I try to deploy it I get this error message:
Code:
ObjectName: persistence.units:ear=usermgmt.ear,jar=usermgmt-server.jar,unitName=UserMgmt
State: FAILED
Reason: javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for: java.util.Set, for columns: [org.hibernate.mapping.Column(nivelSistema)]
I Depend On:
jboss.jca:service=DataSourceBinding,name=UserMgmtDS
This is the way I define "nivelSistema" attribute:
Code:
@OneToMany(fetch=FetchType.EAGER,cascade=CascadeType.MERGE)
public Set<NivelSistema> getNiveles()
{
if(this.nivelSistema == null)
{
this.nivelSistema = new HashSet<NivelSistema>();
}
return nivelSistema;
}
What am I missing? Thanks and sorry if this is really answered, I searched here, the faqs, and internet with no results