Hello,
I migrated to Hibermate 3.6 and got a problem in Configuration.addClass(..) method call:
Code:
Configuration cfg = ....;
cfg.addClass(clazz);
//after migrating to hibernate 3.6 map = null
PersistentClass map = cfg.getClassMapping(MyBean.class.getCanonicalName() );
//now I get here NullPointerException
Table table = map.getTable();
The older Hibernate version returns map unequal to null, thus I can set the name of the table. The method Configuration.addClass(..) hasn't JavaDoc, thus I don't understand what can cause the problem. Before I start to analyze the source code of Configuration.addClass(..) I'd like to ask hibernate community, maybe someone can help :-)