Hibernate

Hibernate Tutorial For Beginners — step-by-step DevOps tutorial on Progressive Robot

Hibernate Tutorial For Beginners

Welcome to the Hibernate tutorial for Beginners. Hibernate is one of the most widely used Java ORM tool. Most of the applications use relational databases to store application information and at the low level we use [JDBC API](/community/tutorials/jdbc-tutorial "JDBC Tutorial with Example Projects, DataSource, JNDI and Spring Integration") for connecting to databases and perform CRUD […]

Read more
Hibernate Native SQL Query Example — step-by-step DevOps tutorial on Progressive Robot

Hibernate Native SQL Query Example

Welcome to the Hibernate Native SQL Query example tutorial. We looked into [Hibernate Query Language](/community/tutorials/hibernate-query-language-hql-example-tutorial "Hibernate Query Language (HQL) Example Tutorial") and [Hibernate Criteria](/community/tutorials/hibernate-criteria-example-tutorial "Hibernate Criteria Example Tutorial") in earlier articles, today we will look into Hibernate Native SQL query with examples. Hibernate SQL Query ![hibernate sql query, hibernate native sql, hibernate sql, hibernate native […]

Read more
Hibernate Session merge, update, save, saveOrUpdate, persist example — step-by-step DevOps tutorial on Progressive Robot

Hibernate Session merge, update, save, saveOrUpdate, persist example

Hibernate Session is the interface between java application and hibernate framework. Today we will look into Session important methods for saving and updating data in tables – save, saveOrUpdate, persist, update and merge. Hibernate Session ![Hibernate Session merge, persist, save, saveOrUpdate methods examples](images/hibernate-session-merge-vs-update-save-saveorupdate-persist-example-section-1.png) Hibernate Session save As the method name suggests, hibernate save() can be […]

Read more
HQL - Hibernate Query Language - Example Tutorial — step-by-step DevOps tutorial on Progressive Robot

HQL – Hibernate Query Language – Example Tutorial

HQL or Hibernate Query Language is the object-oriented query language of Hibernate Framework. HQL is very similar to SQL except that we use Objects instead of table names, that makes it more close to object oriented programming. Hibernate Query Language – HQL ![hibernate query language, hql example, hql query, hibernate query, hibernate join, hql join, […]

Read more
Spring MVC Hibernate MySQL Integration CRUD Example Tutorial — step-by-step Databases tutorial on Progressive Robot

Spring MVC Hibernate MySQL Integration CRUD Example Tutorial

URL: https://www.progressiverobot.com/spring-mvc-hibernate-mysql-integration-crud-example-tutorial/ We learned how to integrate [Spring and Hibernate](/community/tutorials/spring-hibernate-integration-example-tutorial "Spring Hibernate Integration Example Tutorial (Spring 4 + Hibernate 3 and Hibernate 4)") in our last tutorial. Today we will move forward and integrate Spring MVC and Hibernate frameworks in a web application CRUD example. Our final project structure looks like below image, we will […]

Read more
Hibernate One to One Mapping Example Annotation — step-by-step DevOps tutorial on Progressive Robot

Hibernate One to One Mapping Example Annotation

Today we will look into One to One Mapping in Hibernate. We will look into Hibernate One To One Mapping example using Annotation and XML configuration. One to One Mapping in Hibernate ![one to one mapping in hibernate, hibernate one to one mapping, hibernate one to one mapping annotation example](images/hibernate-one-to-one-mapping-example-annotation-section-1.png) Most of the times, database […]

Read more
Hibernate Tomcat JNDI DataSource Example Tutorial — step-by-step DevOps tutorial on Progressive Robot

Hibernate Tomcat JNDI DataSource Example Tutorial

Welcome to the Hibernate Tomcat JNDI DataSource example tutorial. We have already seen how to use [Hibernate ORM tool in standalone java application](/community/tutorials/hibernate-tutorial-for-beginners "Hibernate Tutorial For Beginners using XML, Annotations and Property Configurations"), today we will learn how to use Hibernate with DataSource in Tomcat servlet container. Using hibernate in web application is very easy, […]

Read more
[Solved] org.hibernate.AnnotationException: No identifier specified for entity Class — step-by-step DevOps tutorial on Progressive Robot

[Solved] org.hibernate.AnnotationException: No identifier specified for entity Class

URL: https://www.progressiverobot.com/solved-org-hibernate-annotationexception-no-identifier-specified-for-entity-class/ Recently I was working on a hibernate project and I have added few entity beans, when executed I got below exception stack trace. Initial SessionFactory creation failed.org.hibernate.AnnotationException: No identifier specified for entity: com.journaldev.hibernate.model.Address org.hibernate.AnnotationException: No identifier specified for entity: com.journaldev.hibernate.model.Address at org.hibernate.cfg.InheritanceState.determineDefaultAccessType(InheritanceState.java:277) at org.hibernate.cfg.InheritanceState.getElementsToProcess(InheritanceState.java:224) at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:775) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3788) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3742) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1410) at […]

Read more
Hibernate Session get() vs load() difference with examples — step-by-step DevOps tutorial on Progressive Robot

Hibernate Session get() vs load() difference with examples

Hibernate Session provide different methods to fetch data from database. Two of them are – get() and load(). There are also a lot of overloaded methods for these, that we can use in different circumstances. At first look both get() and load() seems similar because both of them fetch the data from database, however there […]

Read more
Hibernate One To Many Mapping Example Annotation — step-by-step DevOps tutorial on Progressive Robot

Hibernate One To Many Mapping Example Annotation

Today we will look into One To Many Mapping in Hibernate. We will look into Hibernate One To Many Mapping example using Annotation and XML configuration. One To Many Mapping in Hibernate ![one to many mapping in hibernate, hibernate one to many mapping, hibernate mapping example, hibernate one to many mapping annotation example](images/hibernate-one-to-many-mapping-annotation-section-1.png) In simple […]

Read more
CHAT