Back Forum Reply New

hibernate mappingResources

lt;property name=quot;mappingResourcesquot;gt;     lt;listgt;       lt;valuegt;com/test/model/CatalogItem.hbm.xmllt;/valuegt;     lt;/listgt;   lt;/propertygt;I was wondering if the value above has to correspond to the class or if I can place the hbm.xml file in a different location. For example, I have a class (CatalogItem) in a package (com.test.model). Does this mean CatalogItem.hbm.xml must be in com/test/model under WEB-INF/classes or can I just place it in WEB-INF/classes?

Yes, you can place it in WEB-INF/classes.
¥
Back Forum Reply New