Add more forgotten files, all of the selectableValues context.
This commit is contained in:
parent
4a7e129280
commit
35ebbe6d4f
16
hsarback/src/de/hsadmin/core/model/AbstractListValue.java
Normal file
16
hsarback/src/de/hsadmin/core/model/AbstractListValue.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
14
hsarback/src/de/hsadmin/core/model/BooleanListValue.java
Normal file
14
hsarback/src/de/hsadmin/core/model/BooleanListValue.java
Normal 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 };
|
||||
}
|
||||
}
|
@ -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>();
|
||||
}
|
||||
}
|
6
hsarback/src/de/hsadmin/core/model/SelectableValue.java
Normal file
6
hsarback/src/de/hsadmin/core/model/SelectableValue.java
Normal file
@ -0,0 +1,6 @@
|
||||
package de.hsadmin.core.model;
|
||||
|
||||
public interface SelectableValue {
|
||||
public String getName();
|
||||
public Object[] getValues();
|
||||
}
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user