Add Entity, service and Repo

This commit is contained in:
Olivier PARPAILLON
2025-07-16 10:03:38 +02:00
parent ace7e63af9
commit 16484f6062
4 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
package fr.eni.demo.bll;
public interface FactureService {
}

View File

@@ -0,0 +1,4 @@
package fr.eni.demo.bll;
public class FactureServiceImpl implements FactureService {
}

View File

@@ -0,0 +1,29 @@
package fr.eni.demo.bo;
import jakarta.persistence.*;
import lombok.*;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
@Builder
@Entity
@Table(name="Facture")
public class Facture {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "FACTURE_ID")
private Long id;
@Column(name = "PRICE")
private Double price;
@Column(name = "DATE_PAY")
private Date datePay;
}

View File

@@ -0,0 +1,7 @@
package fr.eni.demo.dal;
import fr.eni.demo.bo.Facture;
import org.springframework.data.jpa.repository.JpaRepository;
public interface FactureRepository extends JpaRepository<Facture,Long> {
}