-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: CGLIB Enhancement failed - trotz public constructor
PostPosted: Wed Jun 20, 2007 2:10 pm 
Regular
Regular

Joined: Wed Nov 01, 2006 2:17 pm
Posts: 78
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?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 21, 2007 2:48 am 
Regular
Regular

Joined: Wed Nov 01, 2006 2:17 pm
Posts: 78
Das gleiche Problem tritt bei alle meinen Entitäten auf. Also auch Group und User.

Hat jemand eine Idee?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 25, 2007 2:42 am 
Regular
Regular

Joined: Wed Nov 01, 2006 2:17 pm
Posts: 78
Es lag daran, dass die Entitäten in einem andern Projekt lagen. Nach Einbinden der daraus kompilierten JAR, gelang es mir schließlich.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.