What is the use of annotations in hibernates?
Lets see the uses and benefits of Hibernate annotations:
Programmer always loves the annotations way of programming due to simplicity.
So, it was not easy method. Developers needs to work on Java class and then on xml file for mapping.
After introduction of annotation in Java 5, Hibernate adopted annotation method for mapping. In this case developer provides mapping information in the Java class itself and its very easy method.
Check tutorial: Hibernate 4 Annotations Tutorial
More tutorials of Hibernate:
- Complete Hibernate 3.0 and Hibernate 4 Tutorial
- What is Hibernate in Java?
- Hibernate Overview
- Hibernate Example Step by Step in Eclipse
- Hibernate 4 Tutorial
- Complete Hibernate 4.0 Tutorial
Benefits of using annotation:
- Only one Java file to work
- Easily define mapping in Java pojo file
- Less changes of error
- Very easy
- Work fast
Check large collection Hibernate tutorials at roseindia.net.
Thanks
No comments:
Post a Comment