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

#84 add nested search

parent 910418e9
No related branches found
No related tags found
3 merge requests!81New stable release,!43Merge dev to master,!28Add "Search service"
......@@ -7,6 +7,8 @@ import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
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 javax.persistence.*;
......@@ -61,6 +63,7 @@ public class Table {
@ToString.Include
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "table")
@Field(type = FieldType.Nested)
private List<TableColumn> columns;
@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