Hi,
Can we use Generics when designing EJB3 Entity Beans? Say something like this:
public abstract class Field<Type> {
...
}
@Entity
public class StringField extends Field<String> {
...
}
or
@Entity
public class Form {
public List<Field> getFields() {
...
}
}
Form f = new Form();
f.add(new StringField());
f.add(new IntegerField());
...
Thanks in advance,
Behi
--
"Science is a differential equation. Religion is a boundary condition"
- Alan Turing
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa