Questions tagged [hibernate-6.x]
87 questions
22
votes
2 answers
Why is reading a JDBC ResultSet by position faster than by name and how much faster?
Announcing Hibernate 6 the Hibernate team claims that by switching from
read-by-name to read-by-position in JDBC ResultSet they gain a performance benefit.
High-load performance testing showed that Hibernate’s approach of
reading values from…

Robert Niestroj
- 15,299
- 14
- 76
- 119
6
votes
1 answer
Using Hibernate 6.x with Spring Boot 2.7.x not working?
I am trying to use Hibernate Core 6.x with Spring Boot / Spring Data JPA 2.7.x project, but it's not able to pick up Hibernate 6.x classes.
As you can see in the pom, in spring-boot-starter-data-jpa I have excluded hibernate-core 5.6.10-final and…

samshers
- 1
- 6
- 37
- 84
5
votes
1 answer
Hibernate 6 Error : Already registered a copy: SqmBasicValuedSimplePath(fullyqualifiedclass.name)
When trying to copy the Critria builder for the Count, using the existing criteria. seems getting the below error in Hibernate 6, but the same seems working in Hibernate 5.
Caused by: java.lang.IllegalArgumentException: Already registered a…

Jana
- 239
- 2
- 11
5
votes
1 answer
How can I use Hibernate 6 with Quarkus
I need to use Hibernate version 6.0.0.Alpha7, since they have solved the following issue:
https://hibernate.atlassian.net/browse/HHH-1050
Hibernate dependency is declared using quarkus…

Marília Portela
- 73
- 2
4
votes
0 answers
JPA Metamodel doesn't generate sources after moving to spring boot 3 and java 17
After moving the spring boot project from 2.0 to 3.0 and upgrading to java 17, hibernate-jpamodelgen doesn't generate a metamodel classes.
I added this dependency, but it still doesn't work. Could someone help?
…

java-spring
- 41
- 2
4
votes
2 answers
@JoinColumn "occurs out of order" when upgrading to spring-boot-3 (Hibernate 6 )
I have the following usage in JoinColumns
@Entity
public class EntityOne{
private String action;
private String type;
@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST)
@NotFound(action = NotFoundAction.IGNORE)
…

mosh
- 404
- 2
- 8
- 16
4
votes
0 answers
How to create a TypedParameterValue in Hibernate 6
With Hibernate 5.x we used code similar to the following in order to create a TypedParameterValue
Class> someType = //
Session session = //
TypeHelper typeHelper = session.getSessionFactory().getTypeHelper();
Type type =…

Jens Schauder
- 77,657
- 34
- 181
- 348
3
votes
1 answer
How to prevent Hibernate 6 from auto-escaping backslashes in a LIKE query via Criteria API?
I'm migrating a Spring Boot 2.7 application to 3.0 which upgrades Hibernate from 5.6 to 6.1 and I'm experiencing an issue with JPA's Criteria API creating a SElECT ... LIKE query.
Given the following JPA Predicate:
String searchString = "search…

Moritz
- 1,954
- 2
- 18
- 28
3
votes
2 answers
How to properly configure timestamp handling for TIMESTAMP columns in Hibernate6/Spring Boot 3.0?
We're currently migrating a Spring Boot 2 application to Spring Boot 3 (3.0.2) which includes moving to Hibernate 6 (6.1.6).
All Timestamps are normalized to UTC and saved to the underlying OracleDB using columns of the TIMESTAMP data type (without…

TobsenB
- 333
- 1
- 11
3
votes
2 answers
Hibernate 6 migration, issue with empty collection parameter
The Springboot migration from 2.7.x to 3.0.1 is not going smoothly on my project.
I'm currently facing multiple issues regarding the interpretation of the custom queries used in our repositories. Those queries were working fine before the…

Fred
- 101
- 2
- 10
3
votes
1 answer
Migration Hibernate 6
I try to migrate a SpringBoot application to SpringBoot 3. Sprinboot 3 use Hibernate 6.
My application refuse to start because of the following error
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because the…

Scandinave
- 1,388
- 1
- 17
- 41
3
votes
1 answer
Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing column [customer_number] in table [customers]
I'm working on Spring Boot (V2.2.2.RELEASE) and Spring Data JPA Integration example. In this example, I am validating the schema using spring.jpa.hibernate.ddl-auto=validate, using same schema mentioned here:…

PAA
- 1
- 46
- 174
- 282
2
votes
0 answers
'Schema-validation: missing table' with custom SchemaFilterProvider after upgrading to Spring Boot 3 (Hibernate 6)
When upgrading to Spring Boot 3 and Hibernate 6, it seems like property hibernate.hbm2ddl.schema_filter_provider doesn't work properly. I have a custom implementation of SchemaFilterProvider that excludes my_table from validation, and I set the…

Ayelet
- 21
- 2
2
votes
0 answers
NPE getJdbcValueBinder
For a Spring Boot project that used to work well with Hibernate 5, I try to upgrade Hibernate to version 6.
Now, when I run a @Query statement that uses an enumeration, I get this weird error:
java.lang.NullPointerException:
Cannot invoke…

user3429660
- 2,420
- 4
- 25
- 41
2
votes
0 answers
SpringBoot 3 + Hibernate 6, How to configure version of mysql dialect
HHH90000026: MySQL8Dialect has been deprecated; use org.hibernate.dialect.MySQLDialect instead
In SpringBoot 3 + Hibernate 6, MySQL8Dialect is deprecated in favor of MySQLDialect
the problem is that MySQLDialect requires to set constructor…

Sergio Lissner
- 55
- 1
- 8