Using the <mapping resource="path" /> tag you can reference mapping
files from hibernate.cfg.cml. I do this in a Tapestry 4 project.
For Tapestry 5, I use annotations on my POJOs to eliminate mapping
files and have Tapestry scan certain packages for the entities.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Aug 5, 2011, at 2:41 AM, andreisirghi wrote:
What is actually the code that adds mappings.xml. As I know in
hibernate.cfg.xml is not possible to include mappings, and in
contributeHibernateEntityPackageManager you can add just packages with
hibernate-annotated classes.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-xml-mapping-tp4666037p4668805.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]