Skip to content

Commit

Permalink
import statt fully qualified classname
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSebastian committed Jul 4, 2024
1 parent 8bac2f1 commit b9c071d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import jakarta.persistence.OneToMany;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.UUID;
import lombok.AllArgsConstructor;
Expand Down Expand Up @@ -52,7 +53,7 @@ public class Wahlvorschlaege {
@OneToMany(mappedBy = "wahlvorschlaeage", orphanRemoval = true)
@NotNull
@Size(min = 1)
private Set<Wahlvorschlag> wahlvorschlaege = new java.util.LinkedHashSet<>();
private Set<Wahlvorschlag> wahlvorschlaege = new LinkedHashSet<>();

public void addWahlvorschlag(final Wahlvorschlag wahlvorschlag) {
wahlvorschlag.setWahlvorschlaeage(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import jakarta.persistence.ManyToOne;
import jakarta.persistence.OneToMany;
import jakarta.validation.constraints.NotNull;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.UUID;
import lombok.AllArgsConstructor;
Expand Down Expand Up @@ -61,7 +62,7 @@ public class Wahlvorschlag {

@OneToMany(mappedBy = "wahlvorschlag", orphanRemoval = true)
@NotNull
private Set<Kandidat> kandidaten = new java.util.LinkedHashSet<>();
private Set<Kandidat> kandidaten = new LinkedHashSet<>();

public void addKandidat(final Kandidat kandidat) {
kandidat.setWahlvorschlag(this);
Expand Down

0 comments on commit b9c071d

Please sign in to comment.