Skip to content

Commit

Permalink
Merge pull request #5615 from machi1990/misc-cleanups-spring-jpa-ITS
Browse files Browse the repository at this point in the history
add mappedBy to remove build warning in Spring Data JPA ITs
  • Loading branch information
machi1990 authored Nov 20, 2019
2 parents 99a773f + 12804bd commit ca9be4c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import javax.json.bind.annotation.JsonbDateFormat;
import javax.json.bind.annotation.JsonbProperty;
import javax.json.bind.annotation.JsonbTransient;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
Expand Down Expand Up @@ -118,7 +119,8 @@ public static class Address {
@Column(name = "zip_code")
private String zipCode;

@OneToMany
@JsonbTransient
@OneToMany(mappedBy = "address")
private List<Person> people;

public Long getId() {
Expand Down

0 comments on commit ca9be4c

Please sign in to comment.