Add more forgotten files, all of the selectableValues context.

This commit is contained in:
Purodha 2013-02-20 10:46:39 +00:00
parent 4a7e129280
commit 35ebbe6d4f
5 changed files with 49 additions and 2 deletions

View 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;
}
}

View 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 };
}
}

View 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>();
}
}

View File

@ -0,0 +1,6 @@
package de.hsadmin.core.model;
public interface SelectableValue {
public String getName();
public Object[] getValues();
}

View File

@ -84,9 +84,9 @@ public class Customer extends AbstractEntity implements Serializable {
//@AnnFieldIO(referredProps = "customer")//gut //@AnnFieldIO(referredProps = "customer")//gut
//@AnnFieldIO(referredProps = "customer.CustomersTariff.domainDiscountUntil")//Das ist Kappes! //@AnnFieldIO(referredProps = "customer.CustomersTariff.domainDiscountUntil")//Das ist Kappes!
//@AnnFieldIO(referredProps = "customer.billData.domainDiscountUntil.year")//falsch! //@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."})//schlecht!
// @AnnFieldIO(referredProps = {"customer.billData.domainDiscountUntil.cdate", "customer.billData"})//gut @AnnFieldIO(referredProps = {"customer.billData.domainDiscountUntil.cdate", "customer.billData"})//gut
private BankAccount bankAccount; private BankAccount bankAccount;
@OneToOne(fetch = EAGER, cascade = ALL, mappedBy = "customer") @OneToOne(fetch = EAGER, cascade = ALL, mappedBy = "customer")