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.  [ 1 post ] 
Author Message
 Post subject: What does $$EnhancerByCGLIB$$ mean?
PostPosted: Fri Jun 17, 2005 7:49 pm 
Beginner
Beginner

Joined: Thu Nov 20, 2003 1:30 pm
Posts: 27
Hibernate 3.0.5
Sybase 12.5

I have a base class called Reference which has:

Integer id;
String description;

Then for each table in the database that is a lookup table I have a class that only extends Reference.

So, in my mapping file I have...

<class name="com.lsr.framework.panel.database.model.RecruitType" table="recruit_type">
<cache usage="read-only"/>
<id column="recruit_type_id" name="id" type="java.lang.Integer">
<generator class="assigned"/>
</id>
<property column="description" length="255" name="description" not-null="true" type="java.lang.String"/>
</class>

This setup works with about 14 of my lookup tables. But for this one RecruitType I have 3 records in the database and any time I retrieve all the records and print out the class the 3rd one always has $$EnhancerByCGLIB$$ attached. Why is this? What does it mean when it says this? Its a problem because I have all 3 items in a dropdown list and when I go to setSelected with a RecruitType it won't work.

DEBUG | class com.lsr.framework.panel.database.model.RecruitType
DEBUG | class com.lsr.framework.panel.database.model.RecruitType
DEBUG | class com.lsr.framework.panel.database.model.RecruitType$$EnhancerByCGLIB$$a3b420c6

Any ideas?

Thanks


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

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.