[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-6533) ByteTypeDescriptor is not working properly

Strong Liu (JIRA) noreply at atlassian.com
Wed Sep 7 05:02:03 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Strong Liu resolved HHH-6533.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 4.0.0.next
                   3.6.8

thanks for the patch

> 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
>             Fix For: 3.6.8, 4.0.0.next
>
>         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: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list