Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
90 views

Postgres Permission denied for schema, user is database and schema owner

I'm booting up a java app that I've been working on and on start it is supposed to create this table if it does not exist. The java app authenticates as the defaultuser with the database. This ...
Aluxxen's user avatar
  • 65
0 votes
2 answers
167 views

Losing JDBC connection when using CompletableFuture, Executor and Semaphore

I'm trying to process at most two entities at a time, therefore I wanted to use semaphore. I'll show my previous working code first. This does not guarantee to execute at most two at a time even if ...
Xegara's user avatar
  • 131
1 vote
0 answers
258 views

Fix "org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.sqlExceptionHelper()" is null exception

After updating the Hibernate libraries. During startup, this exception is shown java.lang.NullPointerException: Cannot invoke "org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(java.sql....
Fernando Ortega Gorrita's user avatar
1 vote
0 answers
60 views

Wildfly 34.0.1 deployment error: Required services that are not installed:" => ["jboss.naming.context.java.PostgresDS"]

I am trying to deploy my web application via wildfly maven plugin and get the following error: [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:5.0.1.Final:deploy (default-cli) ...
PooUo12's user avatar
  • 11
0 votes
1 answer
62 views

EntityManager.close not releasing connection back to the pool

I have an old spring application that uses the following configuration for Spring JPA and Hibernate: <bean id="myEmf" class="org.springframework.orm.jpa....
Priyshrm's user avatar
  • 1,170
3 votes
1 answer
1k views

In Hibernate 6, what is the difference between @JdbcTypeCode and @JdbcType?

This answer recommends two options when mapping a VARCHAR type to UUID class: @Id @GeneratedValue @JdbcTypeCode(Types.VARCHAR) private UUID id; and: @Id @GeneratedValue @JdbcType(VarcharJdbcType....
urbim's user avatar
  • 43
0 votes
0 answers
157 views

Getting execution time for each query without logging

In our Spring Boot (MVC) app, we're trying to log the amount of time taken to execute every SQL query / statement (or the amount of time taken for each transaction since I don't believe that's ...
Twisted Tea's user avatar
-1 votes
1 answer
41 views

Issue with Changing @Table Annotation to "users" in JPA Entity Class Using H2 Database

I'm encountering an issue with my Java application where changing the @Table name in my entity class causes the application to fail during tests and runtime. Here are the details: Originally, my ...
quarks's user avatar
  • 35.4k
0 votes
0 answers
31 views

ORM connection behaves differently for two different codes

I had two different codes and I needed to make an ORM connection and create a table out of the given code: code 1: package com.scm.entities; import jakarta.persistence.Column; import jakarta....
prashantjerk's user avatar
0 votes
0 answers
1k views

Java advice wanted: "Unable to acquire JDBC Connection" caused by "HikariPool-2 - Connection is not available, request timed out"

the situation: I am working on a java server application, on linux, java 11, jpa, hikari, mssql database. I have several parts of my application that uses entitymanager's createNativeQuery and ...
martin's user avatar
  • 1
0 votes
0 answers
95 views

Many to Many mapping using Micronaut Data does not persist data

I have 2 entities - a Question and a TestPaper. The mapping between both should be many to many given that a test paper can have many questions and a question can belong in many test papers. @...
Keshav Vel's user avatar
1 vote
0 answers
470 views

How to store an Instant in a database (Oracle) with Hibernate/JPA

After reading different blogs and stackoverflow articles I still don't get it. In my application I have an Instant and I want to store this instant in a database without messing around with it at all. ...
olijaun's user avatar
  • 11
1 vote
1 answer
324 views

Maven error :Closing JPA EntityManagerFactory for persistence unit 'default'

pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
HARSHA U's user avatar
0 votes
0 answers
68 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
2 votes
1 answer
741 views

Failed to initialize JPA EntityManagerFactory: Could not determine recommended JdbcType for Java type <class>

Experiencing error while running my application. Failed to initialize JPA EntityManagerFactory: Could not determine recommended JdbcType for Java type <class> Here is my error log : "C:\...
Spiros Vatikiotis's user avatar

15 30 50 per page
1
2 3 4 5
34