Skip to content

Commit

Permalink
add: nests project- in contract-entity
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-urner committed Jun 3, 2024
1 parent 25e8ed3 commit 7cb331b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/dev/urner/volodb/entity/Contract.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ public class Contract {
private Program program;

@ManyToOne
@JsonProperty("projectId")
@JsonAlias({ "projectId", "project" })
@JoinColumn(name = "project") // FK
@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id")
@JsonIdentityReference(alwaysAsId = true)
private Project project;

@ManyToOne
Expand Down

0 comments on commit 7cb331b

Please sign in to comment.