Skip to content

Commit

Permalink
default not writeable
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Jan 25, 2024
1 parent 2935f4e commit d6b57ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/main/java/com/nucleodb/library/NucleoDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public NucleoDB(DBType dbType, Consumer<ConnectionConsumer> connectionCustomizer
this(dbType, null, connectionCustomizer, dataTableCustomizer, lockCustomizer, packagesToScan);
}
public NucleoDB(DBType dbType, String readToTime, String... packagesToScan) throws IncorrectDataEntryClassException, MissingDataEntryConstructorsException, IntrospectionException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
startLockManager(null);
startTables(packagesToScan, dbType, readToTime, null);
startConnections(packagesToScan, dbType, readToTime, null);
}
Expand Down Expand Up @@ -231,7 +232,8 @@ public void run(DataTable table) {
}
table.addIndexes(indexes.get(table.getConfig().getTable()));
try {
table.build().setNucleoDB(this);
DataTable build = table.build();
build.setNucleoDB(this);
} catch (IntrospectionException e) {
throw new RuntimeException(e);
} catch (InvocationTargetException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class DataEntryProjection{

Comparator<DataEntry> sort = null;

boolean writable = true;
boolean writable = false;
boolean lockUntilWrite = false;

public DataEntryProjection(Pagination pagination, Predicate<DataEntry> filter) {
Expand Down

0 comments on commit d6b57ad

Please sign in to comment.