summaryrefslogtreecommitdiffstats
path: root/proxy/code/src/org/fedoraproject/candlepin/model/EntitlementPool.java
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/code/src/org/fedoraproject/candlepin/model/EntitlementPool.java')
-rw-r--r--proxy/code/src/org/fedoraproject/candlepin/model/EntitlementPool.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/proxy/code/src/org/fedoraproject/candlepin/model/EntitlementPool.java b/proxy/code/src/org/fedoraproject/candlepin/model/EntitlementPool.java
index 7829048..80b949b 100644
--- a/proxy/code/src/org/fedoraproject/candlepin/model/EntitlementPool.java
+++ b/proxy/code/src/org/fedoraproject/candlepin/model/EntitlementPool.java
@@ -28,6 +28,7 @@ import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
+import org.hibernate.annotations.ForeignKey;
/**
* Represents a pool of products eligible to be consumed (entitled).
@@ -44,10 +45,12 @@ public class EntitlementPool {
private Long id;
@ManyToOne
+ @ForeignKey(name="fk_entitlement_pool_owner")
@JoinColumn(nullable=false)
private Owner owner;
@ManyToOne
+ @ForeignKey(name="fk_entitlement_pool_product")
@JoinColumn(nullable=false)
private Product product;