[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-6533) ByteTypeDescriptor is not working properly
Steve Ebersole (JIRA)
noreply at atlassian.com
Tue Sep 13 19:26:08 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole updated HHH-6533:
--------------------------------
Fix Version/s: (was: 4.0.0.next)
(was: 3.6.8)
4.0.0.CR3
> 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: 4.0.0.CR3
>
> 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