In my experience, I suggest to use Eclipse 3.1.x & JBoss IDE plugins to develop the Hibernate and Spring application.
I will provide the simple project. It demo how to create one-to-one, one-to-many, many-to-many.
You need to pay attention on :
- persistent classes xDoclect's Hibernate tag.
- Spring configuration xml file ( hibernate.xml) - datasource, hbm config, bean of spring
- xDoclet configuration. Project > right click > property > XDoclect configuration
** Sample download**
Useful resource to futher study Hibernate.
- HibernateGossip
Any problem, please feel free to contact me:
mingkit@gmail.com
No comments:
Post a Comment