-->
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: Strange Object Type when viewed in MyEclipse debugger?
PostPosted: Tue Aug 29, 2006 3:13 pm 
Newbie

Joined: Tue Aug 29, 2006 3:02 pm
Posts: 2
This isn't necessarily a problem as much as it is a concern. I have created a simple many-to-one association between a User table and a User Type table (each user has a required type).

I created the mapping file (shown below) and everything seems to work. What I am concerned about is that the object type of the associated UserTypeDTO (member of UserDTO) shows up in Eclipse as "UserTypeDTO$$EnhancerByCGLIB$$db866832", instead of "UserTypeDTO". Further, the members populated by Hibernate show as null in the debugger, even though if I do gets on the object the members are populated.

I am retrieving my list of UserDTOs using the following query:

List theList = s.createQuery("from UserDTO").list();


Anybody else have this issue? My fear is this is a problem and I will see the effects later on.


Hibernate version:
3.0.5

Mapping documents:
<class name="com.ar.cfo.model.dto.UserDTO" table="test.scrty_user">
<id name="id" column="scrty_user_id" >
<generator class="identity"/>
</id>
<property name="firstName" column="frst_nm"/>
<property name="lastName" column="last_nm"/>
<property name="username" column="scrty_user_nm"/>
<many-to-one name="userType" column="scrty_user_type_id" not-null="true" />
</class>

<class name="com.ar.cfo.model.dto.UserTypeDTO" table="test.scrty_user_type">
<id name="id" column="scrty_user_type_id">
<generator class="identity"/>
</id>
<property name="description" column="scrty_user_type_descr"/>
</class>


Code between sessionFactory.openSession() and session.close():


Full stack trace of any exception that occurs:

Name and version of the database you are using:
MySQL 5.0

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 10:13 am 
Newbie

Joined: Tue Aug 29, 2006 3:02 pm
Posts: 2
So nobody seems to have this issue?

Can somebody who uses Eclipse at least confirm that they don't have this issue?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 10:32 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
i think you should read our docs and see how hibernate uses runtime bytecode generation to do its "stuff" :)

p.s. it is the basic Eclipse debugger, not MyEclipse.

_________________
Max
Don't forget to rate


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.