Ok, just one more question, there is a way to get the configuration from my SessionFactory. Because I'm using the hibernate.cfg.xml, that have all the basic configuration, and what I have to do to put the other's mapping was this:
Code:
configuration = new Configuration();
configuration.configure("hibernate.cfg.xml");
I do that because I've some dependence in the tables. And after thatI've add the resourses, but I see in the log that there is no SessionFactory selected, the message on the log was:
INFO Configuration:1419 - Configured SessionFactory: null
And after this message the tables are map.
So waht I really wanna do is get the configuration from my current SessionFactory (that have all the mapping from my cfg), so I can just add my others resources without havengi to reload all the hibernate config.