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
|
|