
I worked on a similar example as yours.But when I create a new hibernate console configuration for this new project,I get this error,the console configuration gets created I but when I try to open it I get the below error.
org.hibernate.MappingException: An AnnotationConfiguration instance is required to use
I learnt that AnnotationConfiguration Object features which was existing in the previous versions is deprecated in hibernate 4.0 ,hence I used Configuration object as shown by you.
Kindly help...where could I go wrong...I have been searching for such a typical example given by you.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.