Hi, I need to create an update query to update the relation inside the index, given the relation ID:
@Entity
@Document(indexName = "employees", shards = 3)
public class Employee {
@Id
@GeneratedValue(generator = "UUID")
@GenericGenerator(name = "UUID", strategy = "org.hibernate.id.UUIDGenerator")
@Column(name = "id", updatable = false, nullable = false)
protected UUID id;
@Email
protected String email;
@NotBlank
private String address;
@ManyToOne
@JsonIgnoreProperties(value = "employeesCategory")
private Nomenclature category;
}
So, I want to update the nomenclature entity (relation) inside the given employee index nomenclature_id