Two different classes can map to a single table without mapping errors, though it's very likely to give other errors later. Normally that sort of thing is done as components.
Is the mapping that isn't being found being loaded? Is the file that defines the mapping mentioned in your .cfg.xml file?
Try changing the method you use to load it to one of the methods that takes a Class as the first parameter: for example, "objeto = sessao.get(PseudoRC.class, id);". The version that you're using may end up clouding the issue (if, for example, objeto is an unmapped superclass of the object you want to load); the version with the class parameter will definitely try to load the correct object.
_________________ Code tags are your friend. Know them and use them.
|