Hi!
In my application, I have a model with mixed static (POJO) and dynamic (Map) entities. As I wanted to have unqualified entity names all over the place, I gave the mappings for the POJOs an additional entity name attribute:
<hibernate-mapping package="com.hoerbiger.versuchsdb.common.domain">
<class name="Test" entity-name="Test">
<!-- -->
</class>
</hibernate-mapping>
The problem is now that if I try to Session.refresh()
one of these objects, hibernate tells me: Unknown entity: <<fully qualifiad class name>>
Is there a way to fix/work around this problem without having to return to FQCNs for the POJO entities?
EDIT: I'm using Hibernate 3.5.3 final