Welcome to the Hibernate community newsletter in which we share blog posts, forum, and StackOverflow questions that are especially relevant to our users.
Interviews
Don’t miss our Hibernate developer interview with Jan-Willem Gmelig Meyling.
If you want to share your story about Hibernate, let us know, and we can share it with our huge community of passionate developers.
Articles
Ikhiloya Imokhai explains how to implement a REST service to fetch entities that form a bidirectional JPA relationship when using Spring Boot.
Since cloud computing becomes more and more popular, the need for database multitenancy becomes even more obvious. This article is a short introduction to database multitenancy, and explains how you can achieve it at catalog, schema or table level.
Hibernate Validator is the reference implementation of the Bean Validation specification, and it allows you to decouple the domain model validation logic from the business one. For more details, check out this introductory tutorial.
For our Czech readers, this tutorial shows you how to write data access code using both the Hibernate and the Spring JdbcTemplate.
In this article, Hayri Cicek explains how to develop a MicroProfile REST API with MongoDB, Hibernate OGM and Thorntail (previously known as WildFly Swarm).
When using JPA inheritance, you might want to restrict a given polymorphic query to fetch only a subset of subclasses. This article explains how you can achieve this goal when using the JPA Criteria API.
If you want to retrieve the underlying database connection when using Hibernate, this article explains how to do so.
Questions and answers
-
How to use the MySQL CONVERT_TZ function in a JPQL or HQL query
-
How can I create SELECT FROM SELECT query with JPA and Hibernate?
-
How to fetch a @Transient property from the database using JPA and Hibernate?
-
How to get the default transaction isolation level using Hibernate API
-
SQLQuery and org.hibernate.Query are deprecated. What to use instead?
-
Can you have multiple transactions within one Hibernate Session?
-
What’s the difference between
@JoinColumn
andmappedBy
when using a JPA@OneToMany
association -
Application cache v.s. Hibernate second-level cache, which one to use?
-
JPA GenerationType.AUTO not considering column with auto increment
-
How to run native SQL queries in the same Hibernate transaction?