diff --git a/src/main/java/com/nucleodb/library/database/tables/table/DataEntry.java b/src/main/java/com/nucleodb/library/database/tables/table/DataEntry.java index 6756d47..5534dba 100644 --- a/src/main/java/com/nucleodb/library/database/tables/table/DataEntry.java +++ b/src/main/java/com/nucleodb/library/database/tables/table/DataEntry.java @@ -23,11 +23,14 @@ public class DataEntry implements Serializable, Comparable { public String key; public long version = 0; public T data; + + @JsonIgnore private transient String tableName; + private Instant created; private Instant modified; - private String request; + @JsonIgnore public transient DataTable dataTable; @@ -169,11 +172,4 @@ public void setRequest(String request) { this.request = request; } - public DataTable getDataTable() { - return dataTable; - } - - public void setDataTable(DataTable dataTable) { - this.dataTable = dataTable; - } } diff --git a/src/main/java/com/nucleodb/library/database/tables/table/DataTable.java b/src/main/java/com/nucleodb/library/database/tables/table/DataTable.java index 296c64e..8c5930a 100644 --- a/src/main/java/com/nucleodb/library/database/tables/table/DataTable.java +++ b/src/main/java/com/nucleodb/library/database/tables/table/DataTable.java @@ -128,7 +128,7 @@ public void loadSavedData() { throw new RuntimeException(ex); } } - entry.setDataTable(this); + entry.dataTable = this; entry.setTableName(this.config.getTable()); }); } catch (IOException e) { diff --git a/src/test/java/com/nucleodb/library/EventTest.java b/src/test/java/com/nucleodb/library/EventTest.java index afe5380..1d2627b 100644 --- a/src/test/java/com/nucleodb/library/EventTest.java +++ b/src/test/java/com/nucleodb/library/EventTest.java @@ -90,8 +90,11 @@ public void delete(Delete delete, AuthorDE entry) { assertEquals(1, deleted.get()); } catch (InterruptedException e) { + e.printStackTrace(); + throw new RuntimeException(e); } catch (IncorrectDataEntryObjectException e) { + e.printStackTrace(); throw new RuntimeException(e); } }