J'ai une entité Location
qui a une propriété de type org.springframework.data.elasticsearch.core.geo.GeoPoint
dans Spring boot et spring-data projet -elasticsearch comme ci-dessous:Causée par: org.hibernate.MappingException: Impossible de déterminer le type de: org.springframework.data.elasticsearch.core.geo.GeoPoint
@Entity
@Table(name = "location")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Document(indexName = "location")
public class Location implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@NotNull
@Column(name = "name", nullable = false)
private String name;
@NotNull
@Column(name = "country", nullable = false)
private String country;
@GeoPointField
private GeoPoint location;
...
Mais en veille prolongée jette Caused by: org.hibernate.MappingException: Could not determine type for: org.springframework.data.elasticsearch.core.geo.GeoPoint
quand je commence l'application. Un moyen de contourner cela?