Skip to main content
The 2024 Developer Survey results are live! See the results
deleted 13 characters in body; deleted 3 characters in body
Source Link

You will need tomust also declare the Hibernate Type to the entity class using the @TypeDef annotation like this:

@Entity
@Table(name = "notification")
@Getter
@Setter
@EntityListeners(AuditingEntityListener.class)
@TypeDefs({@TypeDef(name = "json", typeClass = JsonType.class)})
public class Notification {

You will need to declare the Hibernate Type to the entity class using the @TypeDef annotation like this:

@Entity
@Table(name = "notification")
@Getter
@Setter
@EntityListeners(AuditingEntityListener.class)
@TypeDefs({@TypeDef(name = "json", typeClass = JsonType.class)})
public class Notification {

You must also declare the Hibernate Type to the entity class using the @TypeDef annotation like this:

@Entity
@Table(name = "notification")
@Getter
@Setter
@EntityListeners(AuditingEntityListener.class)
@TypeDef(name = "json", typeClass = JsonType.class)
public class Notification {
Source Link

You will need to declare the Hibernate Type to the entity class using the @TypeDef annotation like this:

@Entity
@Table(name = "notification")
@Getter
@Setter
@EntityListeners(AuditingEntityListener.class)
@TypeDefs({@TypeDef(name = "json", typeClass = JsonType.class)})
public class Notification {