Fix: cannot find symbol @Type(type @interface Type MessageClassificationType MessageClassificationType Hibernate 6.x Upgrade Error
Hibernate 6.x Upgrade Errors and Fixes for Java 21, Spring 6.x and Spring Boot 3.x Codebase
Error:
"<java class path>.java:171: error: cannot find symbol
@Type(type = ""com.ent.domainmodel.support.MessageClassificationType"")
^
symbol: method type()
location: @interface Type"
Fix:
Reafctor the code to use @Convert and converter annotation as @Type is no longer supported in Hibernate 6.x.
@Convert(converter = com.ent.domainmodel.support.MessageClassificationType.class)
Comments