Skip to content

Commit

Permalink
🔥 (213): remove migration which is cannot work
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Klaus authored and d135-1r43 committed Dec 23, 2024
1 parent 2ebb979 commit 3bb3afa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.quarkus.hibernate.orm.panache.PanacheEntity;
import jakarta.persistence.*;
import jakarta.persistence.CascadeType;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.Index;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.NamedQuery;
import jakarta.persistence.OneToMany;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;

import java.util.Objects;
import java.util.Set;
Expand Down Expand Up @@ -43,7 +51,6 @@ with children_query as (
join children_query c on n.id = c.bommel
where n.id != :startId or cycleMark = true
""")
@SequenceGenerator(name = "Bommel_SEQ", allocationSize = 1)
public class Bommel extends PanacheEntity {
public static final String DEFAULT_ROOT_BOMMEL_EMOJI = "\uD83C\uDF33"; // tree

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.quarkus.hibernate.orm.panache.PanacheEntity;
import jakarta.persistence.*;
import jakarta.persistence.Entity;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.JoinTable;
import jakarta.persistence.ManyToMany;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;

import java.util.ArrayList;
import java.util.Collection;

@Entity
@SequenceGenerator(name = "Member_SEQ", allocationSize = 1)
public class Member extends PanacheEntity {

// TODO: Add OneToMany to Bommel here and test it
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package app.hopps.org.jpa;

import io.quarkus.hibernate.orm.panache.PanacheEntity;
import jakarta.persistence.*;
import jakarta.persistence.CascadeType;
import jakarta.persistence.Embedded;
import jakarta.persistence.Entity;
import jakarta.persistence.ManyToMany;
import jakarta.persistence.OneToOne;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
Expand All @@ -11,7 +15,6 @@
import java.util.Set;

@Entity
@SequenceGenerator(name = "Organization_SEQ", allocationSize = 1)
public class Organization extends PanacheEntity {

@NotBlank
Expand Down

This file was deleted.

0 comments on commit 3bb3afa

Please sign in to comment.