我有这门课
@Generated(value="Dali", date="2014-07-29T08:43:32.358-0400")
@StaticMetamodel(Country.class)
public class Country_ {
public static volatile SingularAttribute<Country, Long> id;
public static volatile SingularAttribute<Country, String> name;
public static volatile SingularAttribute<Country, Boolean> active;
}
我想以某种方式迭代以获取属性并在列表中检索它们
(是的,这个只有三个属性,但我确实有其他属性更多)
例如
public List<String> retriveEntityProperties() { List<String> parameters = new LinkedList<String>(); for(SingularAttribute<Country, String> att : PersonaFisica_.attributes()) { parameters.add(att.getName()); } return parameters; }
谢谢