PolymorphicModelStringId<List<String>> poly2 = pm.getByKey(PolymorphicModelStringId.class, poly.id);
assertEquals(poly, poly2);
}
public void testEnum() {
EnumTest e = new EnumTest();
e.role = EnumTest.UserRole.ADMIN;
e.insert();
List<EnumTest> es = Model.all(EnumTest.class).filter("role", EnumTest.UserRole.ADMIN).fetch();
assertTrue(!es.isEmpty());
assertEquals(e, es.get(0));
}