All Questions
30,621 questions
-1
votes
0
answers
30
views
Spring Batch Project
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-04-29T11:05:28.880+05:30 ERROR 14920 --- [sr-mart] [ restartedMain] o....
0
votes
0
answers
70
views
I want to implement real time countdown in SQL [closed]
[this is the output 00 minutes](https://i.sstatic.net/9Qte4SBK.png)
I used events that trigger if 30 minutes passed, automatically setting the status to no action if the employee did not approve.
...
0
votes
0
answers
63
views
Are there any jOOQ conventions on how to batch-insert 1 to n relations to the database?
I regularly face the use case in our backend application that it needs to save a lot of data at once that is scattered around multiple tables, but mostly its a 1 to n relationship, or recursive data ...
-1
votes
0
answers
24
views
Table is not generating in Spring Data JPA [duplicate]
@Entity
@Table(name = "order")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable {
private static final long serialVersionUID = 1L;
@...
0
votes
1
answer
76
views
How to properly get output from shell cmd in Java?
I installed mysql in a docker container, and tried to run this Java code to get some variable value:
String[] cmd = new String[] {"docker", "exec", "my", "mysql"...
-5
votes
0
answers
46
views
I am unable to connect mysql to java project [duplicate]
I am working on a java project. I have added the jar file in the referenced libraries option. I also have provided the path in settings.json. Also added the lib folder to store jar files still i can't ...
-3
votes
0
answers
20
views
spark strucutred streaming mysql read [duplicate]
I am using Spark Structured streaming which reads data from Kafka using JAVA api.
However for specific condition need to read the data from MySQL.
How can that be implemented with structured streaming?...
0
votes
1
answer
60
views
Java MySQL: Could not create table and insert initial data
I am creating a system with MySQL and I can't seem to make it create a table and then insert the initial data for the users table. It is connecting properly to the specified database but not creating ...
1
vote
0
answers
103
views
HikariPool-1 - Failed to validate connection in Spring Boot Data Jpa with mysql
I know there are already similar questions and answers on the topic. I tried all the suggestions but nothing worked for me. I decided to post this question because my case seems slightly different.
I ...
0
votes
0
answers
31
views
Hibernate 6 error using `manyToOne` and `oneToMany` mapping - Why is this happening? [duplicate]
I have two entity classes defined. One called EncryptedFile and the other called Chat.
I have stripped out the code down to the root problem.
Chat:
package database.objects
@Entity
@Cacheable
@org....
0
votes
0
answers
82
views
MySql database connection with Jakarta ee via JPA and Wildfly
i've been developping an app for a uni project and i started with 3 simple tables (Student, Teacher and Subject), but when i try to list all the subject in the Controller servlet it shows an error on ...
0
votes
1
answer
176
views
Getting exception "Not a navigable ResultSet" from JDBCTemplate query against a MySQL database in Spring Boot application
We have a Spring Boot application, written in Kotlin, which runs in a container on Digital Ocean App Platform.
Versions:
MySQL 8.0.30
Kotlin 2.0.20
Spring Boot 3.4.2
HikariCP 3.4.5
MySQL Connector/J ...
0
votes
1
answer
59
views
How can I get hibernate to do a unidirectional ManyToOne mapping without using the primary key?
We have a table structure like this:
CREATE TABLE `client` (
`id` BIGINT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE `member` (
`id` BIGINT NOT ...
0
votes
0
answers
30
views
Portable ID generator in Hibernate (For Oracle 11G and Mysql 8.0)
Background
I am trying to migrate my database form Oracle 11G -> Mysql 8.0. I am using hibernate as my ORM layer (over spring boot app)
Problem
While migrating to mysql, i also need to change my id ...
0
votes
0
answers
55
views
Why am I getting "No database selected" error when using Hibernate with MySQL in WildFly?
I'm trying to deploy a Java application to WildFly that uses Hibernate with a MySQL database. However, when I run my application, I get the following error in the logs:
alter table exam_table
...