diff --git a/hsarback/src/de/hsadmin/mods/pac/Pac.java b/hsarback/src/de/hsadmin/mods/pac/Pac.java index b3969d6..3ed0f14 100644 --- a/hsarback/src/de/hsadmin/mods/pac/Pac.java +++ b/hsarback/src/de/hsadmin/mods/pac/Pac.java @@ -58,7 +58,7 @@ public class Pac extends AbstractEntity implements Serializable { @JoinColumn(name = "basepacket_id") @ManyToOne(fetch = EAGER) @AnnFieldIO(rw=ReadWriteAccess.WRITEONCE,validation="[A-Za-z0-9\\/]*") - private BasePac basePac; + private BasePac basepac; @JoinColumn(name = "hive_id") @ManyToOne(fetch = EAGER) @@ -96,10 +96,10 @@ public class Pac extends AbstractEntity implements Serializable { Query qAttachedBasepac = em.createQuery("SELECT b FROM BasePacs b WHERE b.valid = :valid AND b.name = :name"); qAttachedBasepac.setParameter("valid", Boolean.TRUE); qAttachedBasepac.setParameter("name", aBasepac.getName()); - basePac = (BasePac) qAttachedBasepac.getSingleResult(); + basepac = (BasePac) qAttachedBasepac.getSingleResult(); pacComponents = new HashSet(); Date today = new Date(); - for (Component comp : basePac.getComponents()) { + for (Component comp : basepac.getComponents()) { PacComponent pacComp = new PacComponent(); pacComp.setCreated(today); pacComp.setBaseComponent(comp.getBaseComponent()); @@ -200,11 +200,11 @@ public class Pac extends AbstractEntity implements Serializable { } public BasePac getBasepac() { - return basePac; + return basepac; } public void setBasepac(BasePac basepac) { - this.basePac = basepac; + this.basepac = basepac; } public Set getPacComponents() {