Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.5K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Difference Between
3.6K+ articles
Advance Java
906+ articles
Interview-Questions
470+ articles
Java-Spring-Boot
340+ articles
Java-Spring
296+ articles
JPA
29+ articles
Spring CT
1+ articles
Java-Hibernate
87 posts
Recent Articles
Popular Articles
Hibernate - @GeneratedValue Annotation in JPA
Last Updated: 05 April 2025
The @GeneratedValue annotation, the name itself suggests that it will generate something. This annotation is generally used in conjunction with the @Id annotation to autom...
read more
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate- Annotations
Advance Java
Hibernate - @OneToOne Annotation
Last Updated: 24 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: 24 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: 24 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: 24 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: 24 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: 24 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 @DiscriminatorValue Annotation in Hibernate?
Last Updated: 24 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 - @Inheritance Annotation
Last Updated: 24 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 @JoinColumn Annotation in Hibernate?
Last Updated: 24 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 - @PrimaryKeyJoinColumn Annotation
Last Updated: 24 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 - Lazy Collection
Last Updated: 07 June 2023
Hibernate is a powerful open-source framework for Java that provides an object-relational mapping solution. It simplifies the process of working with databases which allow...
read more
Java
Picked
Java-Hibernate
Hibernate - @Version Annotation with Example
Last Updated: 07 June 2023
@Version annotation is used to specify the version number for a specific entity. Version Number provided using @Version annotation is used to prevent concurrent modificati...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate - @Transient Annotation with Example
Last Updated: 07 June 2023
@Transient annotation in Hibernate is used to mark a property or field in an entity class as transient. This means that the field or property marked as transient should be...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
Hibernate - @OrderBy Annotation with Example
Last Updated: 07 June 2023
@OrderBy annotation is used in Hibernate to specify the ordering of the elements in the collection valued property of an entity class. It is used to define the order of th...
read more
Java
Picked
Java-Hibernate
Java-Spring-Data-JPA
1
2
3
4
5
6
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !