Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
19 views

Hibernate can't find a table from postgresql database [duplicate]

Well, I have a postgresql database and table: Structure in postgresql So, i want to get all records from "SheduleRecords" table using Hibernate. Table structure: All types are "...
Oblivion's user avatar
-1 votes
0 answers
35 views

Hibernate + Spring Boot: Handling "More than one row with the given identifier was found" Exception

I'm working on a Spring Boot application with Hibernate and encountering an issue where Hibernate throws "More than one row with the given identifier was found" exception. I'm using custom ...
Karthik Kumar.m's user avatar
-1 votes
0 answers
38 views

Java JPA Postgres query

Is there a good solution to sorting using two columns? For example. Table Before A header Col 1 Col 3 First a Second c Third b So the result is A header Col 1 Col 3 First a Third b Second c ...
limiwinks's user avatar
0 votes
0 answers
16 views

Configuring Hibernate with a New Database Schema in Spring Web Flow

I'm currently working on a project that uses Hibernate with Spring Web Flow, and I've encountered a challenge. We need to integrate a new database schema, let's called it "database_schema_test&...
Antonio López's user avatar
0 votes
1 answer
32 views

Remove a entry from hibernate collection without fetching entire collection

Using Hibernate, I have bi-directional association between person/address. Person entity can have too many addresses and I want to add and remove to address collection without loading entire ...
Apoorva Manjunath's user avatar
0 votes
0 answers
26 views

Getting error at @GeneratedValue(strategy = GenerationType.Auto)

enter image description hereThe type java.lang.Enum cannot be resolved. It is indirectly referenced from required type jakarta.persistence.GenerationType showing at package i want to resolve my error....
user25282260's user avatar
0 votes
1 answer
30 views

Error modifying an entity in springboot : Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) :

In my spring boot application, I have an employe entity and a user entity , that are practically the same , just user has email and password so this entity is used only for authentication but this ...
melodic_n's user avatar
0 votes
1 answer
120 views

org.hibernate.resource.beans.container.internal.NotYetReadyException: CDI BeanManager not (yet) ready to use

I am facing an issue while upgrading my BAS application from Java 8 to Java 17. I have also upgraded hibernate from 5.3.29.Final to 6.5.0.final I am using OpenLiberty version 24.0.0.4 with this ...
Anmol Ahuja's user avatar
0 votes
1 answer
26 views

What if Hibernate Query.list() is called again?

I have some code like this (not made by me): if (query.list() != null && !query.list().isEmpty()) resultObj = (MyObject) query.list().get(0); What happens when it calls query.list() three ...
Patcha's user avatar
  • 1
0 votes
0 answers
38 views

How do I track the memory usage of Hibernate/JDBC database connections?

I am working on a project where we are making fairly large data retrievals and processing the data using a Spring Boot app. The app retrieves data from 5 tables spread across 2 SQL databases (4 tables ...
Alexander Kirk Jørgensen's user avatar
0 votes
1 answer
26 views

Hibernate validator does not see the table

The problem is that with hibernade.ddl-auto: validate enabled, I get an error that the users_roles table does not exist: Failed to initialize JPA EntityManagerFactory: [PersistenceUnit: default] ...
hehmdalolkek's user avatar
0 votes
0 answers
10 views

Difference between NativeQuery and SQLQuery class in Hibernate?

While I was trying to upgrade a Hibernate 4.2 code, I notice that all SQLQuery class is deprecated. Eclipse is suggesting NativeQuery. Can someone help me with understanding - what's the difference ...
mrig's user avatar
  • 402
0 votes
2 answers
143 views

Unable to figure out reason behind exception rounding necessary

I am writing below code to convert the bigDecimal I am picking from db to bigInteger. However, I am getting an exception which can be seen below, along with the code. Can anyone please go through it ...
Wajih Haider's user avatar
1 vote
2 answers
61 views

Why does Hibernate generate a complex subquery for a bidirectional @OneToMany relationship with @JoinTable?

I am working with Spring Boot and Hibernate, managing entities with a bidirectional @OneToMany relationship joined through an intermediary table. Here are my entity definitions: @Entity @Table(name = &...
kairoslav's user avatar
0 votes
2 answers
73 views

Having problems saving an object in Hibernate

Maybe a trivial problem, but I looked through everything I could and couldn’t find a solution I’m trying to save a new GeologicalClass using a post request (not the best naming, but that’s the task), ...
Roman Kalinin's user avatar

15 30 50 per page
1
2 3 4 5
156