Skip to content

Commit

Permalink
simple name
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Sep 15, 2024
1 parent ef278b1 commit adc0b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = 'com.nucleodb'
version = '1.18.7'
version = '1.18.8'

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/nucleodb/library/NucleoDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public void startTable(Class<?> type, DBType dbType, String readToTime, Consumer
throw new IncorrectDataEntryClassException(String.format("%s does not extend DataEntry", dataEntryClass.getName()));
}
if (!tableName.isEmpty()) {
tableName = type.getName().toLowerCase();
tableName = type.getSimpleName().toLowerCase();
} else {
throw new IncorrectDataEntryClassException(String.format("%s does not extend DataEntry", dataEntryClass.getName()));
}
Expand Down Expand Up @@ -369,7 +369,7 @@ private void startTables(String[] packagesToScan, DBType dbType, String readToTi
Table tableAnnotation = type.getAnnotation(Table.class);
String tableName = tableAnnotation.tableName();
if (tableName.isEmpty()) {
tableName = type.getName().toLowerCase();
tableName = type.getSimpleName().toLowerCase();
}
Class dataEntryClass = tableAnnotation.dataEntryClass();
if (!DataEntry.class.isAssignableFrom(dataEntryClass)) {
Expand Down

0 comments on commit adc0b74

Please sign in to comment.