I am experimenting with Hibernate for my Java web app. The following is part of my hibernate.cfg.xml, and I wondering how to map multiple database tables in the same configu
We should not specify mappings in cfg.xml file. It has to be done by either annotations or XML. For Annotations: The cfg.xml file that is provided by you looks ok, if we are using the annotations to indicate database mappings with entity classes.
To use XML way of mapping between Entities and Tables, an hbm.xml file needs to be created and in that case, Replace
with something like
//all the database mappings
Sorry, if I understand your question wrongly.