/**
* Opening times for this branch office
*/
- @JoinTable (name = "branch_opening_times", joinColumns =
- @JoinColumn (name = "branch_opening_id", referencedColumnName = "branch_id"), inverseJoinColumns =
- @JoinColumn (name = "opening_branch_id", referencedColumnName = "opening_times_id"))
+ @JoinTable (
+ name = "branch_opening_times",
+ joinColumns =
+ @JoinColumn (
+ name = "branch_opening_id",
+ referencedColumnName = "branch_id"
+ ),
+ inverseJoinColumns =
+ @JoinColumn (
+ name = "opening_branch_id",
+ referencedColumnName = "opening_times_id"
+ )
+ )
@ManyToMany (targetEntity = BusinessOpeningTime.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private List<OpeningTime> branchOpeningTimes;
/**
* Opening times for this branch office
*/
- @JoinTable (name = "headquarter_opening_times", joinColumns =
- @JoinColumn (name = "headquarter_opening_id", referencedColumnName = "headquarter_id"), inverseJoinColumns =
- @JoinColumn (name = "opening_headquarter_id", referencedColumnName = "opening_times_id"))
+ @JoinTable (
+ name = "headquarter_opening_times",
+ joinColumns =
+ @JoinColumn (
+ name = "headquarter_opening_id",
+ referencedColumnName = "headquarter_id"
+ ),
+ inverseJoinColumns =
+ @JoinColumn (
+ name = "opening_headquarter_id",
+ referencedColumnName = "opening_times_id"
+ )
+ )
@ManyToMany (targetEntity = BusinessOpeningTime.class, cascade = CascadeType.ALL)
private List<OpeningTime> headquarterOpeningTimes;