> *while mapping there are two approaches,XML based approach and Annotation based approach?
which is good approach among them?*
> *while mapping there are two approaches,XML based approach and Annotation based approach?
which is good approach among them?*
Xml based configuration was past, annotation is present. Advantages are less code, number of files, automatic processing, integration with IDE, more information in single file, less error pron, maintainable and many more.