Category "hibernate"

Where can I find a list of Hibernate validation errors?

Is there a doc/web page that documents all the errors like HV000032 somewhere? I'm struggling to find it with search engines...

java.lang.module.ResolutionException: Modules persistence.api and java.persistence export package javax.persistence.spi to module sqlite.dialect

I'm trying to build my first jpa hibernate projekt, but unfortunally i come across this error here: Error occurred during initialization of boot layer java.lang

Hibernate - C3P0 JDBC connection pooling

I'm not a Java developer, but a systems administrator, so forgive me for any senseless statement or questions. I suspect the C3P0 connection pooling is not set

Hibernate NamedQuery UPDATE statement throws QuerySyntaxException

I encountered a very interesting issue. I want to create an UPDATE statement NamedQuery for my class (I know this is a bit hacky). The weird thing is if I use p

How to persist List<Object> as jsonb in hibernate

Below the Entity trying to persist : @Data @Entity @Table(name = "REQUEST") @TypeDef(name = "jsonb", typeClass = JsonBinaryType.class) public class Request { @

How to call a stored procedure in Spring Boot?

A query for a stored procedure for multiple delete yield an error message shown way below. CREATE OR REPLACE PROCEDURE delete_dim_page(_page_id bigint) LANGUAG

Ecommerce table problem mapping in hiberate

I have created a product table which has four foreign keys mapping to different tables and creating relationship of ManyToOne. so i created manytoone relationsh

Manage unique fields insertion with hibernate

I'm working on a JAVA project and need to insert an entity in my DB using Hibernate but the fields need to be inserted only once. I have this ProjectEntity clas

How to resolve: antlr.CommonToken cannot be cast to antlr.Token?

I have just finished an update from wildfly 9 to 23 and am now re-working my arquillian implementation to work with the new application server version. Dependen

Bi-directional relation in hibernate is failing to be cascadelly saved

I am using a Spring-Boot (2.3.3) application with Hibernate (5.4.20) and JPA repository on MySql DB, and I have a Bi-directional relationship between an entity:

Error creating bean with name 'entityManagerFactory' caused by java.lang.IllegalStateException

In the code I do not even use entityManagerFactory. I extend JPARepository and for creating the tables I have entities annotated with @Entity (using javax.persi

Nesting one-to-one relationship in already owned entity

I'm working on a project with multiple user data mapped to a user by one-to-one relationships in the entities. I'm in the process of adding another entity which

What is use of the annotation @JsonIgnore?

I'm joining tables with one to many cardinality, the classes I'm using refer to each other. And I'm using @JsonIgnore annotation with out understanding it deepl

Spring JPA alter table by creating extra column

I am implementing Spring-JPA application . In the model class I am using @Table annotation to map the table with the model class and against the column name usi

Replacement for Hibernate's deprecated Type annotation?

Upon upgrading to Hibernate 5.6.0.Final, I found that org.hibernate.annotations.Type is now deprecated. I use this annotation in many of my entities, including

Results of group by null values are lost

I have table which has productId and productVariantId columns. |id |userId|productId|productVariantId| ---------------------------------------- |1 |1

How to use ilike and % in createSQLQuery in hibernate java

I have made a sql query now i need to add search from it. it needs to search from userfullname the given keyword query is working in postgresql but it is not wo

Quarkus upgrade complaining regarding vertx thread in tests

I have recently upgraded quarkus to 2.9.0.CR1 and am now having issues in some of my tests I am using reactive panache in this, through the repository pattern.

Hibernate PessimisticLockingFailureException Occurring at a particular time everyday

I have a Spring Boot application and hibernate exception comes every day at a particular time at night. The exception is : could not execute statement; SQL [n/a

Strange queryplan jumps on partitioned table on old postgres 9.3

Our solution: We have a trigger based partitioned table. BUT the insert trigger return NEW because hibernate must have rowcount 1 so all insert is inserted pare