Fixed foreign key.
@@ -22,9 +22,9 @@ public class PushSubscription {
@Temporal(TemporalType.TIMESTAMP)
@Column(nullable = false)
private Date updated;
- @ManyToOne
+ @ManyToOne(targetEntity = User.class)
@JoinColumn(nullable = false, name = "user_id")
- private Long user_id;
+ private User owner;
public PushSubscription() {
}
