Skip to content
Snippets Groups Projects
Commit 1bcd7c29 authored by Martin Weise's avatar Martin Weise
Browse files

eager

parent 4ad6189a
No related branches found
No related tags found
3 merge requests!81New stable release,!43Merge dev to master,!23Sprint results
......@@ -55,7 +55,7 @@ public class Table {
private Database database;
@ToString.Include
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumns({
@JoinColumn(name = "id", insertable = false, updatable = false),
@JoinColumn(name = "tid", insertable = false, updatable = false),
......
......@@ -122,7 +122,7 @@ public class TableService {
/* we cannot insert columns at the same time since they depend on the table id */
for (int i = 0; i < createDto.getColumns().length; i++) {
final TableColumn column = tableMapper.columnCreateDtoToTableColumn(createDto.getColumns()[i]);
column.setOrdinalPosition(i);
// column.setOrdinalPosition(i);
column.setCdbid(databaseId);
column.setTid(table.getId());
table.getColumns()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment