diff --git a/fda-metadata-db/entities/src/main/java/at/tuwien/entities/database/table/Table.java b/fda-metadata-db/entities/src/main/java/at/tuwien/entities/database/table/Table.java index 9102cbf3475a8117fde17a6234c88cf9c2f2ad34..01189afa8c79330845d6788a5fd17d6c1b18abbb 100644 --- a/fda-metadata-db/entities/src/main/java/at/tuwien/entities/database/table/Table.java +++ b/fda-metadata-db/entities/src/main/java/at/tuwien/entities/database/table/Table.java @@ -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)