Hi Max, vyemialyanchyk,
Thanks for your reply.
For most applications I write, I generate the mapping in memory based on a model stored in the database. For your info, I am responsible for the Teneo project at eclipse.org:
http://www.eclipse.org/modeling/emf/?project=teneo, there the mapping is generated on the basis of the model definition in ecore.
In this case there is no hbm file or a jpa mapping (orm or annotations) directly and sometimes there are not even entity java classes (in this case I use the dynamic mapping capabilities of hibernate).
For integration with many frameworks (spring or Seam) this works fine as it is possible to specify a custom SessionFactory/EntityManagerFactory implementation.
So therefore my question if it is possible to specify a SessionFactory implementation class because it opens the possibility to integrate all these generation/dynamic environments also with hibernate tools (I hope...).
So that's the background of my question.
gr. Martin