use of org.apache.cayenne.map.ObjAttribute in project cayenne by apache.
the class EOModelProcessorTest method assertLoadedCustomTypes.
protected void assertLoadedCustomTypes(DataMap map) throws Exception {
// check obj entities
ObjEntity customTypes = map.getObjEntity("CustomTypes");
assertNotNull(customTypes);
ObjAttribute pk = customTypes.getAttribute("pk");
assertNotNull(pk);
assertEquals("CustomType1", pk.getType());
ObjAttribute other = customTypes.getAttribute("other");
assertNotNull(other);
assertEquals("CustomType2", other.getType());
}
Aggregations