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

Questions tagged [hibernate]

Hibernate is an object-relational mapping (ORM) library for the Java language enabling developers to utilize POJO-style domain models in their applications in ways extending well beyond Object/Relational Mapping.

hibernate
0 votes
0 answers
5 views

Jersey ServletContainer still trying to use javax

I am trying to update an application to run on Tomcat 10.1.26 using jakarta. When deploying in tomcat I get this error: org.apache.catalina.core.StandardContext.loadOnStartup Servlet [JerseyContainer] ...
Mark Smith's user avatar
0 votes
0 answers
3 views

release conenction in JPA multitenancy connection provider

How to handle exception in releaseConenction(String tenantIdentifier, Connection connetcion) method which implements MultiTenantConnectionProvider. How do we ensure the connetcion will be closed if ...
aryaD's user avatar
  • 3
0 votes
0 answers
19 views

Materialized view with Postgresql/Hibernate/Panache

I have created a panache entity in Quarkus which map existing Materialized view. When I execute a refresh view from a test it's not work. @Entity(name = "MY_VIEW") @Immutable @...
lecogiteur's user avatar
0 votes
0 answers
8 views

Nested Interface Projections in Spring Data JPA

I am working on a spring boot based application where I want to utilize interface based projection as I want to select partial column from my mysql database. I have a CourseEntity.java class with a ...
Usama Abubakar's user avatar
0 votes
0 answers
6 views

Is it possible to fetch the associated entities using hibernate, and panache without calling join fetch

Here I read it should be possible using the NamedEntityGraph, but when the graph gets passed as param to say panache list(queryString, params) with the key being jakarta.persistence.fetchgraph it ...
David Tomecek's user avatar
0 votes
1 answer
24 views

JPA EntityExistsException thown when saving and object

I have the following 2 objects in my project that share the common Composite Primary Key as and ID: @Entity @Immutable @Cacheable(true) @Cache(usage = CacheConcurrencyStrategy.READ_ONLY) @Table(name = ...
Martin819's user avatar
  • 490
-1 votes
0 answers
24 views

EntityManager select only OneToMany field give exception

I am using EntityManager in Spring data JPA with Hibernate as provider. I have 2 entities Post entity @Entity @AllArgsConstructor @NoArgsConstructor @Getter @Setter @Table @NamedEntityGraph(name = &...
titanium's user avatar
-1 votes
0 answers
49 views

Java app memory increase very fast and GC happening too frequent [closed]

I have a spring boot cronjob running in container. I found that container were killed by kubernetes several times. This is the memory and CPU profiling of the app when the job is running: This is ...
zonyang's user avatar
  • 884
-1 votes
0 answers
14 views

Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'dept_name'

I am building Microservice project where I am using Spring Boot application , DB is MS SQL 2022, I am using ready DB table which create some application, I want get data from DB table in my table I ...
Ruslan Şirbidov's user avatar
0 votes
0 answers
6 views

QueryDSL join(a, b) vs join(b).on(): Why does @SQLRestriction behave differently?

Intro: I'm using QueryDSL with Hibernate in a Spring Boot project. I've noticed a difference in the way @SQLRestriction is applied when using join(a, b) versus join(b).on(). Specifically, when using ...
Goose's user avatar
  • 1
0 votes
0 answers
26 views

Hibernate log inside stdout

I'm facing an issue with a Spring Boot 3.2.3 application using Hibernate 6.4.4, Logback, and an Oracle database (ojdbc10). I'm trying to disable the logging of Hibernate queries to the standard output....
Daniele's user avatar
  • 93
0 votes
0 answers
24 views

@JoinColumn "occurs out of order" with spring-boot-3.3.2 (Hibernate 6.5.2 )

I am getting the error: Caused by: org.hibernate.AnnotationException: Referenced column 'sub_categoryvid' mapped by target property 'id' occurs out of order in the list of '@JoinColumn's at ...
Sandra Milena Gomez Rios's user avatar
-1 votes
0 answers
29 views

Bean Validation Not Working with Hibernate Validator in Java Project

I'm encountering an issue with bean validation in my Java project where the expected constraint violations are not being caught. Below are the details of my setup: Dependencies: <dependency> ...
quarks's user avatar
  • 34.7k
0 votes
0 answers
44 views

Fix naming convention to remove underscores from Hibernate JPA

Without any changes it was prepending the class UserProfile and BaseModel id (user_profile_id). What I wanted was just ID in the table. When I changed to use <property name="...
JustinKSU's user avatar
  • 5,009
-1 votes
0 answers
11 views

Row updated in another transaction error unless there is a breakpoint on the save method

I have 2 methods that update an entity and have similar functionality, but I have inherited the codebase with little testing so don’t want to do a refactor yet. However, there is a bug in one of these ...
iamsimonsmale's user avatar

15 30 50 per page
1
2 3 4 5
6348