HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2015-09-11 4d4ed2942ade4f0868fe50c8cdb9a60da37084a0
rename basepac property for reflection problems
1 files modified
10 ■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/Pac.java 10 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/Pac.java
@@ -58,7 +58,7 @@
    @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 @@
        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<PacComponent>();
        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 BasePac getBasepac() {
        return basePac;
        return basepac;
    }
    public void setBasepac(BasePac basepac) {
        this.basePac = basepac;
        this.basepac = basepac;
    }
    public Set<PacComponent> getPacComponents() {