]
Strong Liu reassigned HHH-6533:
-------------------------------
Assignee: Strong Liu
ByteTypeDescriptor is not working properly
------------------------------------------
Key: HHH-6533
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6533
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.6.6
Reporter: Čedomir Igaly
Assignee: Strong Liu
Attachments: ByteTypeDescriptor.hbm.xml, ByteTypeDescriptorTest.java, Test.java
Original Estimate: 5m
Remaining Estimate: 5m
Problem: ByteTypeDescriptor is not implemented like type descriptors for other subclasses
of java.lang.Number. Instead of simple toString / valueOf pair it is using strange kind of
conversion to hex character string. Here is just an example with named query that will
convert HQL query
from Test where byteValue=test.Test.TEST_VALUE
into
select id, byteValue from byte_type_descriptor_test where byteValue=aa
(instead of select id, byteValue from byte_type_descriptor_test where byteValue=42)
Since aa is treated like (non-existing) column name, this query will not work.
Suggested solution: implement ByteTypeDescriptor like type descriptors for other
java.lang.Number subclasses.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: