Skip to content

Commit

Permalink
fix : hibernate entity sequence, forgotten entities in exercice 10 & 14
Browse files Browse the repository at this point in the history
  • Loading branch information
RasDeaks committed Oct 27, 2023
1 parent 4ed43f9 commit ec72440
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
package com.lunatech.training.quarkus;

import io.quarkus.hibernate.orm.panache.PanacheEntity;
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import org.hibernate.validator.constraints.Length;

import jakarta.persistence.Entity;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.Digits;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;

@Entity
public class Product extends PanacheEntityBase {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long id;
public class Product extends PanacheEntity {

@NotNull
@Length(min = 3)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
package com.lunatech.training.quarkus;

import io.quarkus.hibernate.reactive.panache.PanacheEntityBase;
import io.quarkus.hibernate.reactive.panache.PanacheEntity;
import io.vertx.mutiny.sqlclient.Row;
import org.hibernate.validator.constraints.Length;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.Digits;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;

@Entity
public class Product extends PanacheEntityBase {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long id;
public class Product extends PanacheEntity {

@NotNull
@Length(min = 3)
Expand Down

0 comments on commit ec72440

Please sign in to comment.