1/23/2024 0 Comments Hibernate annotations versionIn hibernate, the annotations supported are given by sun under javax. The Version annotation in hibernate is used for Optimistic locking while performing update operation.Most of the annotations related to j2ee level are given by sun and their implementations are given by the vendors.Sun has provided the annotations related to j2se level under .* package.At j2se level, sun has provided very limited set of annotations like Override and Deprecated …etc….For working with annotations, our java version must be 1.5 or higher and hibernate version must be hibernate 3.3 or higher, actually up to now we have been used hibernate 2.2 in our previous tutorials, get ready to download the higher version □.Every annotations is internally an Interface, but the key words starts with symbol.hibernate borrowed annotations from java persistence API but hibernate it self doesn’t contain its own annotations.While working with annotations in hibernate, we do not require any mapping files, but hibernate xml configuration file is must.In hibernate annotations are given to replace hibernate mapping files.Annotations are given by SUN as replacement to the use of xml files in java. ![]() ![]() Hibernate 3.5 and onward contains Hibernate Annotations. Download and unpack the Hibernate Core distribution from the Hibernate website. Annotations are introduced in java along with JDK 1.5, annotations are used to provide META data to the classes, variables, methods of java Requirements Make sure you have JDK 5.0 or above installed. ![]() Let us see few points regarding annotations in hibernate
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |