diff options
Diffstat (limited to 'proxy/code/src/org/fedoraproject/candlepin/model/Consumer.java')
-rw-r--r-- | proxy/code/src/org/fedoraproject/candlepin/model/Consumer.java | 5 |
1 files changed, 3 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 45b7d7b..5e11a6a 100644 --- a/proxy/code/src/org/fedoraproject/candlepin/model/Consumer.java +++ b/proxy/code/src/org/fedoraproject/candlepin/model/Consumer.java @@ -59,6 +59,7 @@ public class Consumer { private String name; @ManyToOne + @JoinColumn(nullable=false) private ConsumerType type; @ManyToOne @@ -89,14 +90,14 @@ public class Consumer { this.type = type; this.info = new ConsumerInfo(); - this.info.setParent(this); // TODO: ??? + this.info.setConsumer(this); // TODO: ??? this.consumedProducts = new HashSet<Product>(); this.entitlements = new HashSet<Entitlement>(); } public Consumer() { this.info = new ConsumerInfo(); - this.info.setParent(this); // TODO: ??? + this.info.setConsumer(this); // TODO: ??? this.consumedProducts = new HashSet<Product>(); this.entitlements = new HashSet<Entitlement>(); } |