[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6533) ByteTypeDescriptor is not working properly
Čedomir Igaly (JIRA)
noreply at atlassian.com
Tue Aug 2 07:26:06 EDT 2011
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
Attachments: ByteTypeDescriptor.hbm.xml, ByteTypeDescriptorTest.java, Test.java
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: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list