[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6533) ByteTypeDescriptor is not working properly
Lukasz Antoniak (JIRA)
noreply at atlassian.com
Mon Sep 5 16:17:02 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43447#comment-43447 ]
Lukasz Antoniak commented on HHH-6533:
--------------------------------------
Pull request submitted: https://github.com/hibernate/hibernate-core/pull/165
> 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
>
> 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