funkhouser wrote:
For some reason the getCollectionMapping(String) operation is returning null for a class name that I know exists in the Hibernate mappings and that I am actively using in my Java program. What would cause this operation to return null instead of the Collection?
String className = MyTestObject.getClass().getName();
// Given Configuration configuration has already be initialized.
Collection collectoin = configuration.getCollectionMapping(className);
You need to enter the fully qualified name of the class (Package + class). It has to match the same class that was passed in during the configuration. I suspect your package information did not get passed to getCollectionMapping thus resulting in null values.