org.hibernate.pretty.Printer assumes ClassMetadata.getPropertyNames & getPropertyValues have the same order

Description

I noticed that Printer scrambles the names and values when printing entities. It seems that it relies on the order of objects in the array returned from ClassMetadata.getPropertyNames is the same as that in the array returned by ClassMetadata.getPropertyValues, which, as far as I can tell, is not the case.

...or perhaps this is a bug in ClassMetadata.getPropertyValues?

Environment

None

Activity

Show:
Max Rydahl Andersen
August 17, 2006, 6:41 AM

testcase proving it ?

if they were not the same order alot of other things would fall apart.

Anders Wallgren
August 17, 2006, 7:12 AM

I'm using annotations – does it matter if my test cases uses them, too?

Max Rydahl Andersen
August 17, 2006, 7:22 AM

as long as the testcase is failing i don't care what you are using

Brett Meyer
December 18, 2013, 8:00 PM

No test case received

Assignee

Unassigned

Reporter

Anders Wallgren

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure