Skip to content
Snippets Groups Projects
Commit d6a34b41 authored by Cornelia Michlits's avatar Cornelia Michlits
Browse files

#84 add nested search

Former-commit-id: 5b475bbf
parent 1dda9d6d
No related branches found
No related tags found
1 merge request!42Fixed the query service tests
...@@ -7,6 +7,8 @@ import org.hibernate.annotations.GenericGenerator; ...@@ -7,6 +7,8 @@ import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.elasticsearch.annotations.Document; import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.jpa.domain.support.AuditingEntityListener; import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.*; import javax.persistence.*;
...@@ -61,6 +63,7 @@ public class Table { ...@@ -61,6 +63,7 @@ public class Table {
@ToString.Include @ToString.Include
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "table") @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "table")
@Field(type = FieldType.Nested)
private List<TableColumn> columns; private List<TableColumn> columns;
@Column(nullable = false, updatable = false) @Column(nullable = false, updatable = false)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment