HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2015-09-07 fa75194cf3ae74ce338e15f61e9dd73edbd50f35
annotate pac properties
1 files modified
7 ■■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/Pac.java 7 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/Pac.java
@@ -25,7 +25,9 @@
import javax.persistence.TemporalType;
import de.hsadmin.core.model.AbstractEntity;
import de.hsadmin.core.model.AnnFieldIO;
import de.hsadmin.core.model.AnnModuleImpl;
import de.hsadmin.core.model.ReadWriteAccess;
import de.hsadmin.hostsharing.BasePacType;
import de.hsadmin.mods.cust.Customer;
import de.hsadmin.mods.user.UnixUser;
@@ -46,6 +48,7 @@
    private long id;
    @Column(name = "packet_name", unique = true)
    @AnnFieldIO(rw=ReadWriteAccess.WRITEONCE,validation="[a-z0-9]*")
    private String name;
    @JoinColumn(name = "bp_id")
@@ -54,10 +57,12 @@
    @JoinColumn(name = "basepacket_id")
    @ManyToOne(fetch = EAGER)
    @AnnFieldIO(rw=ReadWriteAccess.WRITEONCE,validation="[A-Za-z0-9\\/]*")
    private BasePac basePac;
    @JoinColumn(name = "hive_id")
    @ManyToOne(fetch = EAGER)
    @AnnFieldIO(rw=ReadWriteAccess.WRITEONCE,validation="[a-z0-9]*")
    private Hive hive;
    @Column(name = "created")
@@ -73,6 +78,7 @@
    
    @JoinColumn(name = "cur_inet_addr_id", nullable = true)
    @ManyToOne(fetch = EAGER)
    @AnnFieldIO(rw=ReadWriteAccess.WRITEONCE,validation="[0-9\\.]*")
    private INetAddress curINetAddr;
    @JoinColumn(name = "old_inet_addr_id", nullable = true)
@@ -83,6 +89,7 @@
    private Set<PacComponent> pacComponents;
    @OneToMany(fetch = LAZY, cascade = ALL, mappedBy="pac")
    @AnnFieldIO(rw=ReadWriteAccess.WRITEONCE,validation="[a-z0-9\\-\\.\\_]*")
    private Set<UnixUser> unixUser;
    public void initPacComponents(EntityManager em, BasePac aBasepac, boolean setDefaults) {