mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
fix annotation
This commit is contained in:
@@ -3,6 +3,7 @@ package com.commafeed.backend.model;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@@ -13,7 +14,7 @@ import org.hibernate.annotations.Index;
|
||||
@SuppressWarnings("serial")
|
||||
public class FeedPushInfo extends AbstractModel {
|
||||
|
||||
@Column(unique = true)
|
||||
@JoinColumn(unique = true)
|
||||
@OneToOne(fetch = FetchType.LAZY)
|
||||
private Feed feed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user