Ignore:
Timestamp:
03/13/23 00:58:07 (20 months ago)
Author:
Gjoko Kostadinov <gjoko.kostadinov@…>
Branches:
master
Children:
9050790
Parents:
2b0a4db
Message:

Add admin page initial work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/edu/gjoko/schedlr/entity/Service.java

    r2b0a4db r46fd0c7  
    1111
    1212import javax.persistence.*;
    13 import java.sql.Timestamp;
    1413import java.time.LocalDateTime;
    1514
     
    2726    private Long id;
    2827
    29     @Column(name = "name")
    30     private String name;
    31 
    3228    @Column(name = "duration")
    3329    private Integer duration;
    3430
    35     @Column(name = "price")
    36     private Float price;
    37 
    38     @OneToOne
     31    @OneToOne(cascade = CascadeType.MERGE)
    3932    @JoinColumn(name = "service_type_id", referencedColumnName = "id")
    4033    private ServiceType serviceType;
    4134
    4235    @ManyToOne
    43     @JoinColumn(name="business_fk")
     36    @JoinColumn(name = "business_fk")
    4437    @JsonBackReference
    4538    private Business business;
Note: See TracChangeset for help on using the changeset viewer.