-->
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.  [ 2 posts ] 
Author Message
 Post subject: Mapped class fields stored as cglib decorated type
PostPosted: Mon Feb 06, 2006 6:50 am 
Newbie

Joined: Fri Dec 09, 2005 6:17 am
Posts: 7
3.1beta8

The latest version hibernate seems to be behaving differently when persisting class fields.

The problem shows up if the following class is persisted with a cglib decorated class assigned to the 'referenceClass' field. Previously hibernate resolved this to the original class type when storing the field in the database. In the latest version the cglib decorated type is stored. Of course when the application is restarted the cglib class is no longer available and hibernate is unable to repopulate the field.

@Entity
public class Person {

@Id @GeneratedValue
private Long id;
private Class referenceClass;
}

Is this expected behaviour or a bug?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 2:22 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
looks like a bug, please open a JIRA issue with a working test case.
BTW try to reproduce with plain hbm files, I'm not sure this this is annotations fault

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.