I just revision how to use Hibernate, you need to understand about the one-to-one, one-to-many, many-to-many before use the Hibernate. Hibernate is not very complicate but you don't use any tools to help develop the application with Hibernate, you will feel hard.
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
Hope this example can give you idea to use Spring and Hibernate.
** Sample download**Useful resource to futher study Hibernate.
-
HibernateGossipAny problem, please feel free to contact me:
mingkit@gmail.com