I’m getting compilation error after upgrading Hibernate 6.1 version. @Type annotation got deprecated in Hibernate 6.1. I want replacement annotation for @Type(type =”pg-uuid”) annotation.
My Entity:
@Entity
public class JobEntity{
@Id
@Type(type="pg-uuid")
private UUID id;
}
I’m getting compilation error at type annotation. Please give me some solution type annotation.
New contributor
Lingamoorthy Nandyala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.