HSAdmin Backend Domains, E-Mail, Datenbanken
Purodha
2013-02-20 35ebbe6d4f380759b1cf707e98c35c93a6170a45
Add more forgotten files, all of the selectableValues context.
1 files modified
4 files added
51 ■■■■■ changed files
hsarback/src/de/hsadmin/core/model/AbstractListValue.java 16 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/core/model/BooleanListValue.java 14 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/core/model/DefaultSelectableValues.java 11 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/core/model/SelectableValue.java 6 ●●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/cust/Customer.java 4 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/core/model/AbstractListValue.java
New file
@@ -0,0 +1,16 @@
package de.hsadmin.core.model;
public abstract class AbstractListValue  implements SelectableValue {
    private String name;
    public AbstractListValue(String string) {
        name = string;
    }
    @Override
    public String getName() {
        return name;
    }
}
hsarback/src/de/hsadmin/core/model/BooleanListValue.java
New file
@@ -0,0 +1,14 @@
package de.hsadmin.core.model;
public class BooleanListValue extends AbstractListValue {
    public BooleanListValue(String string) {
        super(string);
    }
    @Override
    public Object[] getValues() {
        return new Boolean[]{ Boolean.TRUE, Boolean.FALSE };
    }
}
hsarback/src/de/hsadmin/core/model/DefaultSelectableValues.java
New file
@@ -0,0 +1,11 @@
package de.hsadmin.core.model;
import java.util.ArrayList;
import java.util.List;
public class DefaultSelectableValues {
        public List<SelectableValue> get() {
            return new ArrayList<SelectableValue>();
        }
}
hsarback/src/de/hsadmin/core/model/SelectableValue.java
New file
@@ -0,0 +1,6 @@
package de.hsadmin.core.model;
public interface SelectableValue {
    public String getName();
    public Object[] getValues();
}
hsarback/src/de/hsadmin/mods/cust/Customer.java
@@ -84,9 +84,9 @@
    //@AnnFieldIO(referredProps = "customer")//gut
    //@AnnFieldIO(referredProps = "customer.CustomersTariff.domainDiscountUntil")//Das ist Kappes!
    //@AnnFieldIO(referredProps = "customer.billData.domainDiscountUntil.year")//falsch!
    //@AnnFieldIO(referredProps = "customer.billData.domainDiscountUntil.cdate")//gut
    // @AnnFieldIO(referredProps = "customer.billData.domainDiscountUntil.cdate")//gut
    //@AnnFieldIO(referredProps = {"customer.billData.domainDiscountUntil.cdate", "customer.billData."})//schlecht!
    // @AnnFieldIO(referredProps = {"customer.billData.domainDiscountUntil.cdate", "customer.billData"})//gut
     @AnnFieldIO(referredProps = {"customer.billData.domainDiscountUntil.cdate", "customer.billData"})//gut
    private BankAccount bankAccount;
    @OneToOne(fetch = EAGER, cascade = ALL, mappedBy = "customer")