Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Java
9.4K+ articles
Misc
7.7K+ articles
Mathematics
5.6K+ articles
Hibernate- Annotations
14 posts
Recent Articles
Popular Articles
Spring - @DeleteMapping and @PutMapping Annotation
Last Updated: 10 March 2026
In Spring Boot, @PutMapping and @DeleteMapping are commonly used in controller classes to map HTTP PUT and DELETE requests to specific methods. These annotations make the ...
read more
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Springboot
Spring @Primary Annotation
Last Updated: 04 January 2025
@Primary annotation in Spring is used to indicate the primary bean when multiple beans of the same type are present for auto wiring. When multiple beans are eligible for a...
read more
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Advance Java
Hibernate - Difference Between @JoinColumn and @PrimaryKeyJoinColumn
Last Updated: 23 July 2025
@JoinColumn annotation in JPA is used to specify the column which is responsible for storing the foreign key value that established the relationship between two entities. ...
read more
Picked
Java-Hibernate
Hibernate- Annotations
Advance Java
Hibernate - @PrimaryKeyJoinColumn Annotation
Last Updated: 28 April 2025
@PrimaryKeyJoinColumn in Hibernate is used to specify the primary key of the associated entity as the foreign key of the current entity. This annotation is used to establi...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Hibernate - @OneToOne Annotation
Last Updated: 28 April 2025
@OnetoOne annotation in Hibernate is used to create a one-to-one association between two entities. The one-to-one annotation indicates that one instance of an entity is as...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Hibernate - @OneToMany Annotation
Last Updated: 28 April 2025
@OneToMany annotation in Hibernate is used to obtain one-to-many relationships between two entities. It is used to map a collection-valued association where a single insta...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Hibernate - @MapsId Annotation
Last Updated: 28 April 2025
@MapsId annotation in Hibernate is used to obtain a one-to-one relationship between two entities by mapping the primary key of one entity to the foreign key of another ent...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Hibernate - @ManyToOne Annotation
Last Updated: 28 April 2025
@ManytoOne annotation in Hibernate is used to create a many-to-one relationship between two entities. The @ManyToOne annotation indicates that the many instances of one en...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Hibernate - @ManyToMany Annotation
Last Updated: 28 April 2025
@ManyToMany annotation in Hibernate is used to obtain many-to-many relationships between two entities. It allows us to create a bidirectional relationship between two enti...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Hibernate - @Lob Annotation
Last Updated: 28 April 2025
Many times there is a scenario while storing the data in the database that we have to store images or files within our database for a specific entity. In that case, we can...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
When to Use @JoinColumn Annotation in Hibernate?
Last Updated: 28 April 2025
The @JoinColumn annotation in Hibernate is used to specify the mapping of a foreign key column in a relationship between two entities. The @JoinColumn annotation is applie...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Hibernate - @Inheritance Annotation
Last Updated: 28 April 2025
The @Inheritance annotation in JPA is used to specify the inheritance relation between two entities. It is used to define how the data of the entities in the hierarchy sho...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
When to Use @DiscriminatorValue Annotation in Hibernate?
Last Updated: 28 April 2025
The @DiscriminatorColumn annotation in JPA is used to differentiate one entity from another entity class from an inheritance hierarchy. This annotation is used to provide ...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Hibernate - @GeneratedValue Annotation in JPA
Last Updated: 23 April 2026
@GeneratedValue is a JPA annotation used to let the persistence provider automatically assign values to primary key fields. It eliminates manual ID management and ensures ...
read more
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Advance Java