Hibernate Tutorial – Using Annotations with Hibernate
August 6th, 2009
2 comments
In case you missed the first post Hibernate Tutorial for beginners , please go through it if you are new to hibernate.
Annotations are powerful and easy way used to provide metadata about the class.They do not effect the operation of the code. They can be used to provide information about the class to the compiler. They can be used to replace the configuration files. Many applications scan files and detect annotated classes and get configured accordingly. I am using JPA API here to demonstrate you the usage of annotations. Please download ejb3-persistence.jar and include in your referenced libraries.

