diff options
| author | Devan Goodwin <dgoodwin@redhat.com> | 2009-12-01 12:43:12 -0400 |
|---|---|---|
| committer | Devan Goodwin <dgoodwin@redhat.com> | 2009-12-01 12:43:12 -0400 |
| commit | 449f14c6a0eae1253c5987edd16429def8e3d1f2 (patch) | |
| tree | e2314ce444cca388e29c1e871559e1e1798bc46d | |
| parent | 8988f562d1bd45f107dd522f31bf8394fc329184 (diff) | |
| download | candlepin-449f14c6a0eae1253c5987edd16429def8e3d1f2.tar.gz candlepin-449f14c6a0eae1253c5987edd16429def8e3d1f2.tar.xz candlepin-449f14c6a0eae1253c5987edd16429def8e3d1f2.zip | |
Remove Entitlement.childEntitlements.
Don't think we'll need an entitlement hierarchy. Entitlements already
map to pools which map to products, these are in a hierarchy already.
| -rw-r--r-- | proxy/code/src/org/fedoraproject/candlepin/model/Entitlement.java | 27 | ||||
| -rw-r--r-- | proxy/code/src/org/fedoraproject/candlepin/model/Owner.java | 1 |
2 files changed, 1 insertions, 27 deletions
diff --git a/proxy/code/src/org/fedoraproject/candlepin/model/Entitlement.java b/proxy/code/src/org/fedoraproject/candlepin/model/Entitlement.java index e651c39..f6c50db 100644 --- a/proxy/code/src/org/fedoraproject/candlepin/model/Entitlement.java +++ b/proxy/code/src/org/fedoraproject/candlepin/model/Entitlement.java @@ -68,13 +68,6 @@ public class Entitlement { @JoinColumn(nullable=false) private EntitlementPool pool; - @Transient -// @OneToMany(targetEntity=Product.class, cascade=CascadeType.ALL) -// @JoinTable(name="cp_product_hierarchy", -// joinColumns=@JoinColumn(name="PARENT_PRODUCT_ID"), -// inverseJoinColumns=@JoinColumn(name="CHILD_PRODUCT_ID")) - private List<Entitlement> childEntitlements; - private Date startDate; public Entitlement() { @@ -116,28 +109,12 @@ public class Entitlement { } /** - * @return the childEntitlements - */ - public List<Entitlement> getChildEntitlements() { - return childEntitlements; - } - - /** - * @param childEntitlements the childEntitlements to set - */ - public void setChildEntitlements(List<Entitlement> childEntitlements) { - this.childEntitlements = childEntitlements; - } - - - /** * @return Returns the product. */ public Product getProduct() { return this.pool.getProduct(); } - /** * @return Returns the pool. */ @@ -145,7 +122,6 @@ public class Entitlement { return pool; } - /** * @param poolIn The pool to set. */ @@ -153,7 +129,6 @@ public class Entitlement { pool = poolIn; } - /** * @return Returns the startDate. */ @@ -161,13 +136,11 @@ public class Entitlement { return startDate; } - /** * @param startDateIn The startDate to set. */ public void setStartDate(Date startDateIn) { startDate = startDateIn; } - } diff --git a/proxy/code/src/org/fedoraproject/candlepin/model/Owner.java b/proxy/code/src/org/fedoraproject/candlepin/model/Owner.java index fe41fb7..46f8999 100644 --- a/proxy/code/src/org/fedoraproject/candlepin/model/Owner.java +++ b/proxy/code/src/org/fedoraproject/candlepin/model/Owner.java @@ -53,6 +53,7 @@ public class Owner { @Transient private List<Consumer> consumers; + // EntitlementPool is the owning side of this relationship. @OneToMany(mappedBy="owner", targetEntity=EntitlementPool.class) private List<EntitlementPool> entitlementPools; |
