Hallo,
ich habe eine Entitätsklasse erstellt "UserGroupSubscriptionstatus" und passend dazu die mapping Datei. Jedoch erhalte ich von Hibernate folgende Exception:
Code:
2007-06-20 20:02:57,612 [main] ERROR org.hibernate.proxy.BasicLazyInitializer - CGLIB Enhancement failed: org.mycomp.UserGroupSubscriptionstatus2007-06-20 20:02:57,612 [main] ERROR org.hibernate.proxy.BasicLazyInitializer - CGLIB Enhancement failed: org.mycomp.UserGroupSubscriptionstatus
Hier die Mapping-Datei:
Code:
<class name="org.mycomp.UserGroupSubscriptionstatus" table="usergroupsubscriptionstatus">
<id name="id" column="id" type="java.lang.Integer">
<generator class="increment" />
</id>
<many-to-one name="group" class="org.mycomp.Group" update="false" insert="false" fetch="select">
<column name="group_id" not-null="true" />
</many-to-one>
<many-to-one name="user" class="org.mycomp.User" update="false" insert="false" fetch="select">
<column name="user_id" not-null="true" />
</many-to-one>
<property name="subscriptionstatus" type="org.mycomp.HibernateSubscriptionStatusEnum" not-null="true"/>
</class>
Und die Klasse selbst:
Code:
public class UserGroupSubscriptionstatus {
private int id;
private Group group;
private User user;
private SubscriptionStatus subscriptionstatus;
public UserGroupSubscriptionstatus() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Group getGroup() {
return group;
}
public void setGroup(Group group) {
this.group = group;
}
public SubscriptionStatus getSubscriptionstatus() {
return subscriptionstatus;
}
public void setSubscriptionstatus(SubscriptionStatus subscriptionstatus) {
this.subscriptionstatus = subscriptionstatus;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
}
Was mache ich falsch?