Skip to content

Commit

Permalink
#332 - Remove @DaTa annotation from jpa classes
Browse files Browse the repository at this point in the history
- change hashcode method in Context class
- remove unused imports
  • Loading branch information
michael-82 committed Oct 28, 2024
1 parent 1d09b0b commit 19771bb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public final boolean equals(Object o) {
}

@Override
public final int hashCode() {
return this instanceof HibernateProxy ? ((HibernateProxy) this).getHibernateLazyInitializer().getPersistentClass().hashCode() : getClass().hashCode();
public int hashCode() {
return Objects.hash(id, system, code, version, display);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;

import java.io.IOException;
import java.util.List;

import static org.assertj.core.api.Assertions.assertThat;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package de.numcodex.feasibility_gui_backend.terminology.persistence;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;

import static org.junit.jupiter.api.Assertions.*;

Expand Down

0 comments on commit 19771bb

Please sign in to comment.