Re: Tapestry-Hibernate xml mapping
Using the 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: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry-Hibernate xml mapping
Did have take a look at http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/hibernate/HibernateConfigurer.html You can contribute a HibernateConfigurer and use http://docs.jboss.org/hibernate/core/3.5/javadoc/org/hibernate/cfg/Configuration.html#addFile(java.lang.String) to add a mapping file. regards Taha On Fri, Aug 5, 2011 at 12:11 PM, 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: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Regards Taha Hafeez Siddiqi (tawus) http://tawus.wordpress.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry-Hibernate xml mapping
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: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry-Hibernate xml mapping
config hibernate.cfg.xml, add mapping xmls On Thu, Aug 4, 2011 at 7:56 PM, andreisirghi wrote: > Hi, can somebody inform me how can I notice tapestry-hibernate library that > I > want to load the mapping of entities from an xml file, i.e. without > annotations in entity classes. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-xml-mapping-tp4666037p4666037.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Korben Zhang
Tapestry-Hibernate xml mapping
Hi, can somebody inform me how can I notice tapestry-hibernate library that I want to load the mapping of entities from an xml file, i.e. without annotations in entity classes. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-xml-mapping-tp4666037p4666037.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org