diff options
author | Adrian Likins <adrian@alikins.usersys.redhat.com> | 2009-12-03 11:19:04 -0500 |
---|---|---|
committer | Adrian Likins <adrian@alikins.usersys.redhat.com> | 2009-12-03 11:19:04 -0500 |
commit | addf7c2f62c8a789586711105715683776ea5809 (patch) | |
tree | 94ae82836d4c684e68a505318065344f49b4b9cd /proxy/code/src/org | |
parent | 744109c91948fc68bf3a63f52b88801e9d2bc438 (diff) | |
download | candlepin-addf7c2f62c8a789586711105715683776ea5809.tar.gz candlepin-addf7c2f62c8a789586711105715683776ea5809.tar.xz candlepin-addf7c2f62c8a789586711105715683776ea5809.zip |
add fk's for cp_consumer_products and cp_consumer_entitlements
Diffstat (limited to 'proxy/code/src/org')
-rw-r--r-- | proxy/code/src/org/fedoraproject/candlepin/model/Consumer.java | 6 |
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")) |