Changeset 950fa0d for src/main/java/edu/gjoko/schedlr/entity
- Timestamp:
- 05/24/23 23:18:47 (18 months ago)
- Branches:
- master
- Children:
- 77205be
- Parents:
- 8bcd64c
- Location:
- src/main/java/edu/gjoko/schedlr/entity
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/entity/Appointment.java
r8bcd64c r950fa0d 24 24 private Long id; 25 25 26 @Column(name = "start_t ype")26 @Column(name = "start_time") 27 27 private LocalDateTime startTime; 28 28 … … 30 30 private LocalDateTime endTime; 31 31 32 @Column(name = "price") 33 private Float price; 32 @OneToOne 33 @JoinColumn(name = "customer_id", referencedColumnName = "id") 34 private Stakeholder customer; 35 36 @ManyToOne 37 @JoinColumn(name = "business_id") 38 private Business business; 39 40 @ManyToOne 41 @JoinColumn(name = "service_id") 42 private Service service; 34 43 35 44 @Column(name = "created") -
src/main/java/edu/gjoko/schedlr/entity/Business.java
r8bcd64c r950fa0d 37 37 private BusinessType businessType; 38 38 39 @ManyToOne( cascade = CascadeType.PERSIST)39 @ManyToOne() 40 40 @JoinColumn(name = "owner_id", referencedColumnName = "id", nullable = false) 41 41 @JsonProperty("owner") -
src/main/java/edu/gjoko/schedlr/entity/Service.java
r8bcd64c r950fa0d 33 33 private Integer price; 34 34 35 @OneToOne(cascade = CascadeType. MERGE)35 @OneToOne(cascade = CascadeType.PERSIST) 36 36 @JoinColumn(name = "service_type_id", referencedColumnName = "id") 37 37 private ServiceType serviceType; 38 38 39 39 @ManyToOne 40 @JoinColumn(name = "business_ fk")40 @JoinColumn(name = "business_id") 41 41 @JsonBackReference 42 42 private Business business; -
src/main/java/edu/gjoko/schedlr/entity/ServiceType.java
r8bcd64c r950fa0d 30 30 private String name; 31 31 32 33 32 @ManyToOne 34 33 @JoinColumn(name = "business_type_id") -
src/main/java/edu/gjoko/schedlr/entity/Stakeholder.java
r8bcd64c r950fa0d 43 43 44 44 @Column(name = "password") 45 @JsonIgnore46 45 private String password; 47 46
Note:
See TracChangeset
for help on using the changeset viewer.