Skip to content

Commit

Permalink
fixed argument selector
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Jul 9, 2024
1 parent 9712fd6 commit c30dbe6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 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.17.2'
version = '1.17.3'

repositories {
mavenCentral()
Expand Down
9 changes: 2 additions & 7 deletions src/integrationTest/java/com/nucleodb/library/ExportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,10 @@ public void checkSaving() throws IncorrectDataEntryObjectException, InterruptedE
}
@Test
public void fileSaving() throws IncorrectDataEntryObjectException, InterruptedException {
AuthorDE edgarAllenPoe = new AuthorDE(new Author("Edgar Allen Poe", "fiction"));
authorTable.saveSync(edgarAllenPoe);
AuthorDE author = authorTable.get("name", "George Orwell").stream().findFirst().get();
assertEquals(
1,
authorTable.get(
"id",
edgarAllenPoe.getKey(),
null
).size()
wroteConnections.getByFrom(author, null).size()
);
Thread.sleep(5000);
}
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 @@ -125,9 +125,9 @@ private void startConnections(String[] packagesToScan, DBType dbType, String rea
Type[] toTableTypeArguments = new Type[0];
Type[] fromTableTypeArguments = new Type[0];
if(actualTypeArguments.length==2) {
Class<?> toTable = (Class<?>) actualTypeArguments[0];
Class<?> toTable = (Class<?>) actualTypeArguments[1];
toTableTypeArguments = ((ParameterizedType) toTable.getGenericSuperclass()).getActualTypeArguments();
Class<?> fromTable = (Class<?>) actualTypeArguments[1];
Class<?> fromTable = (Class<?>) actualTypeArguments[0];
fromTableTypeArguments = ((ParameterizedType) fromTable.getGenericSuperclass()).getActualTypeArguments();

}
Expand Down

0 comments on commit c30dbe6

Please sign in to comment.