you use HA along with t5, t5 just supports it naturaly, if you put the entities in the entities package t5 will find them and add them to config. then, all you need is hibernate.cfg.xml containing connection data
I'm leaving office right now so sory for a such short reply.. Davor Hrg On 6/6/07, Daniel Jue <[EMAIL PROTECTED]> wrote:
Hi all, I am just getting started with Hibernate in my Tap 5 application, and I'm kind of manually setting up Hibernate using the standard HibernateUtils static methods and xml files for my domain objects. It is working, although it's not elegant. Now, I thought it would be good to explore this Hibernate-Annotations [HA] library that is compatible with Hibernate 3.2+. It seems that with this lib, I can set up Hibernate as well as set up the entity objects (although the annotations in the Hibernate docs seem to come from the javax.persistence.* package which is used for EJB3s), and rid myself of xml set up files. Now from the small snippet of code on Tapestry-Hibernate [TH5], I see that you can do your Hibernate configuration there, and it will also set up your entities. However, I don't know the full ambition of this library--would it replace the need for HA? Put another way, If I was using TH5, do I need to have the .hbm.xml files for my entities, or can I use HA, or is TH5 going to create the HA for me ? I know this is alpha, an answer based on intended behavior is fine. Daniel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]