Hi.
I am using a table with a two fields in combination as primary key. one of these fields is primary key in another table. I am using hbm.xml file right now. I have a java class corresponding to this table, a DAO class and an Interface. In the applicationContext.xml , I am giving reference for all these files. I want to use Hibernate Annotations for this java class, so that I can get rid of hbm.xml files. Can anyone tell me how can I do this and what all changes I have to made in applicationContext.xml
TIA
|