summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Likins <adrian@alikins.usersys.redhat.com>2009-12-03 11:19:04 -0500
committerAdrian Likins <adrian@alikins.usersys.redhat.com>2009-12-03 11:19:04 -0500
commitaddf7c2f62c8a789586711105715683776ea5809 (patch)
tree94ae82836d4c684e68a505318065344f49b4b9cd
parent744109c91948fc68bf3a63f52b88801e9d2bc438 (diff)
downloadcandlepin-addf7c2f62c8a789586711105715683776ea5809.tar.gz
candlepin-addf7c2f62c8a789586711105715683776ea5809.tar.xz
candlepin-addf7c2f62c8a789586711105715683776ea5809.zip
add fk's for cp_consumer_products and cp_consumer_entitlements
-rw-r--r--proxy/code/src/org/fedoraproject/candlepin/model/Consumer.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/proxy/code/src/org/fedoraproject/candlepin/model/Consumer.java b/proxy/code/src/org/fedoraproject/candlepin/model/Consumer.java
index f1d3335..3ffea28 100644
--- a/proxy/code/src/org/fedoraproject/candlepin/model/Consumer.java
+++ b/proxy/code/src/org/fedoraproject/candlepin/model/Consumer.java
@@ -80,14 +80,16 @@ public class Consumer {
// Separate mapping because in theory, a consumer could be consuming products they're
// not entitled to.
@ManyToMany
- @ForeignKey(name = "fk_consumer_product_consumer_id",
- inverseName = "fk_consumer_product_product_id")
+ @ForeignKey(name="fk_consumer_product_consumer_id",
+ inverseName="fk_consumer_product_product_id")
@JoinTable(name="cp_consumer_products",
joinColumns=@JoinColumn(name="consumer_id"),
inverseJoinColumns=@JoinColumn(name="product_id"))
private Set<Product> consumedProducts;
@OneToMany
+ @ForeignKey(name="fk_consumer_product_consumer_id",
+ inverseName="fk_consumer_produce_product_id")
@JoinTable(name="cp_consumer_entitlements",
joinColumns=@JoinColumn(name="consumer_id"),
inverseJoinColumns=@JoinColumn(name="entitlement_id"))