Add more forgotten files, all of the selectableValues context.
4 files added
1 files modified
New file |
| | |
| | | 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; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | 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 }; |
| | | } |
| | | } |
New file |
| | |
| | | package de.hsadmin.core.model; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | public class DefaultSelectableValues { |
| | | |
| | | public List<SelectableValue> get() { |
| | | return new ArrayList<SelectableValue>(); |
| | | } |
| | | } |
New file |
| | |
| | | package de.hsadmin.core.model; |
| | | |
| | | public interface SelectableValue { |
| | | public String getName(); |
| | | public Object[] getValues(); |
| | | } |
| | |
| | | //@AnnFieldIO(referredProps = "customer.billData.domainDiscountUntil.year")//falsch! |
| | | //@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") |