After creating a class Role in a custom package domain like below:
@Persist
public class Role extends AbstractComplexEObject {
private static final long serialVersionUID = 1L;
private final StringEO name = new StringEO();
@Override
public Title title() { return name.title(); }
public StringEO getName() { return this.name; }
}
the framework reported (while schema update):
[java] Exception in thread "main" org.springframework.beans.factory.BeanCreationException?: Error creating bean with name 'persistor' defined in class path resource [persistorContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException?: Could not parse mapping document from resource com/u2d/app/Role.hbm.xml
[java] Caused by: org.hibernate.InvalidMappingException?: Could not parse mapping document from resource com/u2d/app/Role.hbm.xml
(...)