I am doing a Spring Boot course written in Spring Boot 2.19, Hibernate 5.3.12 and Java 8. I am using Java 17, Hibernate 6.1.6 and Spring Boot 3.0.2.
I sorted many things that didn't match, but one problem I can't find the solution to is that :
@Type(type="org.hibernate.type.BinaryType")
is apparently deprecated since Hibernate 6 (I get the error "Cannot resolve method type")
However, none of the solutions I found were related to binary data and I couldn't find anything relevant in the docs .. I guess because I'm so new to this area I probably can't see the answer when it hits me!
Based on various sources I tried:
@Convert(converter = org.hibernate.type.BinaryConverter.class)
@Type(BinaryType)
IDE does not suggest anything for Binary.. in either of the cases..
I guess I could just download the lower version dependency of hibernate, but I am curious still how does this work in the newest Hibernate version?