Add resource mapping into the hibernate.cfg.xml file.
Posted on July 3rd, 2006 by HuHe
When you want to associate a database table with Hibernate, you must remember to add resource mapping, something like:< resource=”myPack/Category.hbm.xml”>, into the hibernate.cfg.xml file. Otherwise, the data from this table can’t be found.
No Comments »
Filed under: Java
