You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by andreisirghi <an...@yahoo.com> on 2011/08/04 13:56:00 UTC

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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry-Hibernate xml mapping

Posted by Taha Hafeez <ta...@gmail.com>.
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 <an...@yahoo.com> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry-Hibernate xml mapping

Posted by Norman Franke <no...@myasd.com>.
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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


Re: Tapestry-Hibernate xml mapping

Posted by andreisirghi <an...@yahoo.com>.
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry-Hibernate xml mapping

Posted by Korben Zhang <ko...@gmail.com>.
config hibernate.cfg.xml, add mapping xmls

On Thu, Aug 4, 2011 at 7:56 PM, andreisirghi <an...@yahoo.com> 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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Korben Zhang