Ticket #160 (new defect)

Opened 3 years ago

Last modified 3 years ago

couldn't use name "Role" for a class

Reported by: lumen Assigned to: eitan
Priority: major Component: metasystem
Version: Keywords: name clash Role
Cc:

Description

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 (...)

Change History

11/02/07 06:43:04 changed by lumen

  • summary changed from couldn't use name "Role" a class to couldn't use name "Role" for a class.