Steven Walters (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNWU3NWI2MGE5...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14021?atlOrigin=eyJpIjoiNWU3NW...
) HHH-14021 (
https://hibernate.atlassian.net/browse/HHH-14021?atlOrigin=eyJpIjoiNWU3NW...
) Using AttributeConverter to Byte fails with "No dialect mapping for JBDC Type:
<697960108>" (
https://hibernate.atlassian.net/browse/HHH-14021?atlOrigin=eyJpIjoiNWU3NW...
)
Issue Type: Bug Affects Versions: 5.3.17, 5.4.15, 6.0.0.Alpha5 Assignee: Unassigned
Attachments: hibernate-byte-converter-issue.zip Components: hibernate-core Created:
15/May/2020 05:12 AM Priority: Major Reporter: Steven Walters (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
When attempting to use an AttributeConverter that converts the attribute to a Byte type,
hibernate generates an error of
Caused by: org.hibernate.MappingException: No Dialect mapping for JDBC
type: 1998767043
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 (
https://hibernate.atlassian.net/secure/attachment/49684/49684_hibernate-b...
)
I've attached a small test project to exemplify the issue. can use
mvn clean verify -Phibernate53
mvn clean verify -Phibernate54
mvn clean verify -Phibernate60
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=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14021#add-comment?atlOrigin=ey...
)
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....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100126- sha1:acdbdcc )