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: org.hibernate.pretty.Printer bug?
PostPosted: Wed Aug 16, 2006 11:07 pm 
Newbie

Joined: Wed Jun 30, 2004 2:02 am
Posts: 13
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2.0cr3

Has anyone else noticed that in the output of Printer, the output is scrambled, namely that the wrong property value is printed with the wrong name?

That is, I'm seeing

Code:
2006-08-16T19:26:14.85  | DEBUG | ApiQueue-1       | DeleteJob#1                                   | Printer                        | com.electriccloud.commander.domain.ProjectImpl{acl=1, modifiedBy=null, schedules=null, description=2006-08-16 19:26:01, createDate=test, updateDate=<uninitialized>, propertySheet=com.electriccloud.commander.domain.PropertySheetImpl#2, procedures=com.electriccloud.commander.domain.AclImpl#3, name=2006-08-16 19:26:01, id=1, version=<uninitialized>}

In this fragment, the 'createDate' value is printed in the 'description' slot, etc.

It looks like the code assumes that the order of the objects in the arrays returned by ClassMetadata.getPropertyNames and ClassMetadata.getPropertyValues are correlated. However, by inspection, this doesn't seem to be the case.

I filed HHH-2009 against this.


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.