Closed kuldeeparora89 closed 3 years ago
There are two ways you can fix this problem:
You can choose whichever option works best for you.
Strangely by just changing the name of type to "jsonb-lob" it worked -
@TypeDefs({ @TypeDef(name = "jsonb-lob", typeClass = JsonBlobType.class) })
@Audited
@Table(name = "hyperform_common_config")
@Entity
public class CommonConfig implements Serializable{
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Id
@Column(name = "id")
private long id;
@Type(type = "jsonb-lob")
@Column(name = "config_data")
private String configData;
I'm glad you found the solution.
Hi,
I am getting below error -
Caused by: org.hibernate.MappingException: Could not determine type for: jsonb-lob, at table: hyperform_common_config_AUD, for columns: [org.hibernate.mapping.Column(config_data)]
This error only happens when I apply @Audited on the entity.
Code -
Please suggest !!