I have an entity Photo as below
@Entity
class Photo {
Path imagePath;
public Path getImagePath(){
return imagePath;
// setter
}
In this entity i have to nio.Path how can i solve thiss problem or make the table in db to accept strings as path the error stack is below
Caused by: org.hibernate.MappingException: Could not determine type for: java.nio.file.Path, at table: photo, for columns: [org.hibernate.mapping.Column(image_path)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:431)