Showing posts with label mapping. Show all posts
Showing posts with label mapping. Show all posts

Monday, July 03, 2006

Add resource mapping into the hibernate.cfg.xml file.

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.