Em Sun, 26 Oct 2008 11:31:49 -0300, James Sherwood
<[EMAIL PROTECTED]> escreveu:
The problem is, when I try to run it I get this error:
Could not determine type for: java.util.Set, for columns:
[org.hibernate.mapping.Column(userses)]
It seems like you chose the Hibernate Core generation type in Hibernate
Tools. Use the JPA version next time. The error is that the usereses
property of the Occupation class is an untyped Set. If it was declared as
a Set<User>, it would not complain about this anymore.
@Entity
@Table(name="occupation")
public class Occupation {
public Set getUserses() {
return this.userses;
}
public void setUserses(Set userses) {
this.userses = userses;
}
}
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]