Changeset a436340 for src/main/java/edu/gjoko/schedlr/entity/Business.java
- Timestamp:
- 02/05/23 19:55:10 (21 months ago)
- Branches:
- master
- Children:
- 2b0a4db
- Parents:
- cc52b09
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/entity/Business.java
rcc52b09 ra436340 1 1 package edu.gjoko.schedlr.entity; 2 2 3 import com.fasterxml.jackson.annotation.JsonManagedReference; 3 4 import lombok.AllArgsConstructor; 4 5 import lombok.Getter; … … 25 26 private String name; 26 27 27 @ Column(name = "business_type")28 @ Enumerated(EnumType.STRING)28 @OneToOne 29 @JoinColumn(name = "business_type_id", referencedColumnName = "id") 29 30 private BusinessType businessType; 30 31 … … 39 40 private Stakeholder owner; 40 41 42 @OneToMany(mappedBy = "business") 43 @JsonManagedReference 44 private List<Service> services; 45 41 46 @Column(name = "created") 42 47 private LocalDateTime created; … … 45 50 private LocalDateTime modified; 46 51 47 @OneToMany(mappedBy = "business") 48 private List<Service> services; 52 49 53 }
Note:
See TracChangeset
for help on using the changeset viewer.