[hibernate-issues] [JIRA] (HHH-14021) Using AttributeConverter to Byte fails with "No dialect mapping for JBDC Type: <697960108>"

Steven Walters (JIRA) jira at hibernate.atlassian.net
Fri May 15 08:12:39 EDT 2020


Steven Walters ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A962aacfe-dd9c-432e-8471-9a7930e4c781 ) *updated* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNzYzN2VlNThkYzQ2NDc3Yzg3Yzg1NTY1NWMzNjNmMGMiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-14021?atlOrigin=eyJpIjoiNzYzN2VlNThkYzQ2NDc3Yzg3Yzg1NTY1NWMzNjNmMGMiLCJwIjoiaiJ9 ) HHH-14021 ( https://hibernate.atlassian.net/browse/HHH-14021?atlOrigin=eyJpIjoiNzYzN2VlNThkYzQ2NDc3Yzg3Yzg1NTY1NWMzNjNmMGMiLCJwIjoiaiJ9 ) Using AttributeConverter to Byte fails with "No dialect mapping for JBDC Type: <697960108>" ( https://hibernate.atlassian.net/browse/HHH-14021?atlOrigin=eyJpIjoiNzYzN2VlNThkYzQ2NDc3Yzg3Yzg1NTY1NWMzNjNmMGMiLCJwIjoiaiJ9 )

Change By: Steven Walters ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A962aacfe-dd9c-432e-8471-9a7930e4c781 )

When attempting to use an AttributeConverter that converts the attribute to a Byte type, hibernate generates an error of

{quote}Caused by: org.hibernate.MappingException: No Dialect mapping for JDBC type: 1998767043{quote}

Where the integer value listed seems to be some random value.
However, using Short, works.
On several projects, we're wanting to utilize byte values to store enumerated types instead of inefficient text strings.
For now, we're working around it by using Short instead, but obviously this uses double the size per enum per row.
[^hibernate-byte-converter-issue.zip]

I've attached a small test project to exemplify the issue. can use

{code :java }
mvn clean verify -Phibernate53
mvn clean verify -Phibernate54
mvn clean verify -Phibernate60
{code}

to run with 5.3.17.Final, 5.4.15.Final, and 6.0.0.Alpha5 respectively.

( https://hibernate.atlassian.net/browse/HHH-14021#add-comment?atlOrigin=eyJpIjoiNzYzN2VlNThkYzQ2NDc3Yzg3Yzg1NTY1NWMzNjNmMGMiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14021#add-comment?atlOrigin=eyJpIjoiNzYzN2VlNThkYzQ2NDc3Yzg3Yzg1NTY1NWMzNjNmMGMiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100126- sha1:acdbdcc )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200515/3ab4cc41/attachment.html 


More information about the hibernate-issues mailing list