Skip to content

Commit

Permalink
Added the relationship OneToOne with Shelter
Browse files Browse the repository at this point in the history
  • Loading branch information
angelbn01 committed Feb 27, 2024
1 parent bc9a058 commit 603f89f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Location.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
@Entity
@EqualsAndHashCode(callSuper = false)
public class Location {
@OneToOne
@JsonIdentityReference(alwaysAsId = true)
private Shelter shelter;

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
Expand Down

0 comments on commit 603f89f

Please sign in to comment.