I'm attempting to use Envers to set up Auditing on my Hibernate entities. However, I'm getting the error:
Could not determine type for: geometry, at table: Location_AUD, for columns: [org.hibernate.mapping.Column(geom)]
Hibernate is happy with the geometry type I'm using without the auditing, but Envers seems to be having trouble with it.
Does anyone know if Envers works with Hibernate Spatial 4? If it does, perhaps someone can spot the issue with my code.
@Audited
@Entity
public class Location {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_LOCATION")
@SequenceGenerator(name = "SEQ_LOCATION", sequenceName = "SEQ_LOCATION", allocationSize = 1)
Long id;
@Type(type = "org.hibernate.spatial.GeometryType")
Geometry geom;
...
}
I'm using Hibernate 4.2.5 with HibernateSpatial 4.0.0 M1