mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
lazy loading everywhere
This commit is contained in:
@@ -2,6 +2,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.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
@@ -11,11 +12,11 @@ import javax.persistence.Table;
|
||||
@SuppressWarnings("serial")
|
||||
public class FeedEntryStatus extends AbstractModel {
|
||||
|
||||
@ManyToOne
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(nullable = false)
|
||||
private FeedSubscription subscription;
|
||||
|
||||
@ManyToOne
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(nullable = false)
|
||||
private FeedEntry entry;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user