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. |
|