Changeset 46fd0c7 for src/main/java/edu/gjoko/schedlr/entity/Service.java
- Timestamp:
- 03/13/23 00:58:07 (20 months ago)
- Branches:
- master
- Children:
- 9050790
- Parents:
- 2b0a4db
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/entity/Service.java
r2b0a4db r46fd0c7 11 11 12 12 import javax.persistence.*; 13 import java.sql.Timestamp;14 13 import java.time.LocalDateTime; 15 14 … … 27 26 private Long id; 28 27 29 @Column(name = "name")30 private String name;31 32 28 @Column(name = "duration") 33 29 private Integer duration; 34 30 35 @Column(name = "price") 36 private Float price; 37 38 @OneToOne 31 @OneToOne(cascade = CascadeType.MERGE) 39 32 @JoinColumn(name = "service_type_id", referencedColumnName = "id") 40 33 private ServiceType serviceType; 41 34 42 35 @ManyToOne 43 @JoinColumn(name ="business_fk")36 @JoinColumn(name = "business_fk") 44 37 @JsonBackReference 45 38 private Business business;
Note:
See TracChangeset
for help on using the changeset viewer.