diff --git a/hsarback/src/de/hsadmin/core/model/AbstractListValue.java b/hsarback/src/de/hsadmin/core/model/AbstractListValue.java new file mode 100644 index 0000000..281c058 --- /dev/null +++ b/hsarback/src/de/hsadmin/core/model/AbstractListValue.java @@ -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; + } + +} \ No newline at end of file diff --git a/hsarback/src/de/hsadmin/core/model/BooleanListValue.java b/hsarback/src/de/hsadmin/core/model/BooleanListValue.java new file mode 100644 index 0000000..fe4e5b6 --- /dev/null +++ b/hsarback/src/de/hsadmin/core/model/BooleanListValue.java @@ -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 }; + } +} \ No newline at end of file diff --git a/hsarback/src/de/hsadmin/core/model/DefaultSelectableValues.java b/hsarback/src/de/hsadmin/core/model/DefaultSelectableValues.java new file mode 100644 index 0000000..5cdda0e --- /dev/null +++ b/hsarback/src/de/hsadmin/core/model/DefaultSelectableValues.java @@ -0,0 +1,11 @@ +package de.hsadmin.core.model; + +import java.util.ArrayList; +import java.util.List; + +public class DefaultSelectableValues { + + public List get() { + return new ArrayList(); + } +} diff --git a/hsarback/src/de/hsadmin/core/model/SelectableValue.java b/hsarback/src/de/hsadmin/core/model/SelectableValue.java new file mode 100644 index 0000000..f38abc4 --- /dev/null +++ b/hsarback/src/de/hsadmin/core/model/SelectableValue.java @@ -0,0 +1,6 @@ +package de.hsadmin.core.model; + +public interface SelectableValue { + public String getName(); + public Object[] getValues(); +} diff --git a/hsarback/src/de/hsadmin/mods/cust/Customer.java b/hsarback/src/de/hsadmin/mods/cust/Customer.java index bb2039e..33b9b9e 100644 --- a/hsarback/src/de/hsadmin/mods/cust/Customer.java +++ b/hsarback/src/de/hsadmin/mods/cust/Customer.java @@ -84,9 +84,9 @@ public class Customer extends AbstractEntity implements Serializable { //@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")