Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
-1 votes
0 answers
78 views

I'm trying to run a job using Spring Batch 5 using h2 embeded db but i continue having a problem. Seems the spring batch h2 databse script isn't loaded. This is my configuration class: package ****....
0 votes
2 answers
148 views

I'm trying to make a Maven project that connects to an H2 database. In an IDE this works fine, but when executing the compiled project in the terminal, or when building the project into a JAR file and ...
Lucy's user avatar
  • 105
2 votes
2 answers
101 views

select DATE_ADD(CURRENT_DATE(), INTERVAL -30 DAY) works in MySQL. SELECT DATEADD(‘DAY’, -30, CURRENT_DATE()) works in H2(2.2.224). I am looking for a generic SQL solution that works in both the ...
0 votes
0 answers
100 views

I'm using Spring Boot with its profiles mechanic to configure the proper data source to use per environment. For CI and certain local development profiles, we use H2. For everything else, we use ...
0 votes
1 answer
127 views

I have a table with 2 columns: EMPLOYER_ID PLAN_NAME 1234 Aetna 1234 Cigna What would be my SQL query to change it to: EMPLOYER_ID PLAN_NAME PLAN_NAME2 1234 Aetna Cigna Basically I want to create a ...
0 votes
0 answers
73 views

I have a requirement to create routing to different endpoints using gateway (ended up using spring cloud gateway [reactive stack]). Upon setting up Spring Boot 3 project with dependencies, when added ...
0 votes
1 answer
166 views

I want to run tests on my app using h2 as a database but every time I attempt to run a test it shows me an exception saying that h2 db is empty. None of the related questions I`ve read helped me. This ...
0 votes
0 answers
58 views

We have a Java/SpringBoot RESTful microservice and an associated integration-test module that is running Cucumber steps. The problem is that when the test is run, although the Cucumber call to the API ...
0 votes
1 answer
28 views

Under https://www.h2database.com/html/features.html#multiple_connections, the documentation describes how to set the value of the LOCK_TIMEOUT setting (e.g. SET LOCK_TIMEOUT 1000). However, it makes ...
0 votes
1 answer
81 views

I'm trying to use the H2 database, and using the Spring @Id and GenerationType.IDENTITY annotation. The persistence of the data is in a file inside the project's DATA folder, so, when I restart the ...
0 votes
0 answers
36 views

I am writing integration test using H2 with following setup datasource.url=jdbc:h2:mem:service;MODE=PostgreSQL;DB_CLOSE_ON_EXIT=FALSE;DATABASE_TO_LOWER=TRUE;DEFAULT_NULL_ORDERING=HIGH;INIT=RUNSCRIPT ...
0 votes
0 answers
36 views

In H2, we can use the function bit_xor_agg to perform a XOR operation on a group. The same function exists in MySQL but is named bit_xor. What would be the easiest way to alias/rename bit_xor_agg as ...
Xavier Dury's user avatar
  • 1,623
0 votes
1 answer
53 views

I'm currently learning JPA and Hibernate through Spring Boot and I have an entity that refuses to be initialized into a table. public class Product { @Id @GeneratedValue private Long id; ...
0 votes
1 answer
225 views

Always getting error when trying to open H2 db file: "Unsupported database file version or invalid file header in file" Error code: "[90048-224] 90048/90048". I've tried different ...
Yurii's user avatar
  • 333
0 votes
0 answers
174 views

I keep wasting time in the admin realm of my keycloak installation, so I disabled it. But apparently I should remove the settings instead, because now I can no longer login to my keycloak installation....
MrFox's user avatar
  • 5,184

15 30 50 per page
1
2 3 4 5
...
345

AltStyle によって変換されたページ (->オリジナル) /