Latest commit on 10/02/2025
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package io.gmss.fiscad.entities.decoupage;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import io.gmss.fiscad.entities.BaseEntity;
|
||||
import io.gmss.fiscad.entities.infocad.parametre.Bloc;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.hibernate.annotations.Where;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Entity
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Where(clause = " deleted = false")
|
||||
public class Quartier extends BaseEntity implements Serializable {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
private String code;
|
||||
private String nom;
|
||||
@JsonIgnore
|
||||
@ManyToOne
|
||||
private Arrondissement arrondissement;
|
||||
@JsonIgnore
|
||||
@OneToOne(mappedBy = "quartier")
|
||||
private Bloc bloc;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user