h2 Questions

4

I am writing a test case to test my Step in spring batch. Below is my configuration @ExtendWith(SpringExtension.class) @ContextConfiguration(classes = {BatchTemplateConfig.class, CustomerItemWrite...
Clapp asked 2/3, 2023 at 11:53

3

Solved

I have a Role enum, like this: public enum Role{ admin('a'), member('m'), pending('p'); char role; Role(char a) { this.role = a; } public char getRole() { return role; } public static R...
Hypognathous asked 31/12, 2019 at 13:54

3

Solved

I have an issue with loading data into an in-memory database on application initialization. I have created schema.sql and data.sql files containing table structure and initial data. schema.sql : ...
Potiche asked 24/1, 2017 at 23:55

7

Solved

Following is my dockerfile that works to run the H2 Database: I want to create a docker compose file for this. FROM klousiaj/oracle-java:7.79 MAINTAINER J.P. Klousia <klousiaj> ENV DOWNLOAD...
Coughlin asked 3/1, 2017 at 14:20

3

Solved

I have been trying for quite some time to figure out a solution for my problem, to no avail. Anyway, i have a bunch of integration tests (in a nonstandard directory testRegression parallel to the s...
Lockard asked 22/7, 2020 at 14:13

6

Solved

I am working on SpringBoot api and using H2 database with following property settings. spring.h2.console.enabled=true spring.datasource.name=test spring.datasource.username=sa spring.datasource.p...
Candycecandystriped asked 20/11, 2018 at 14:28

12

Solved

I want to keep some data in H2 database by making a CRUD repository, using Hibernate. I can't get the database to store my entries whatsoever. Currently, I'm trying to achieve that during updating...
Bullyboy asked 25/7, 2017 at 11:37

3

I have a site running locally on MySQL i want to run it on H2 database. I have just run h2.jar file for console on the browser but whenever I Log in I have seen the list jdbc:h2:/var/www/mysite/dat...
Manassas asked 23/6, 2014 at 18:33

18

Solved

I am trying to use the H2 database from a Java application. I created the database and its tables through the H2 Console and then I try to connect from Java using Connection con = DriverManager...
Cartwheel asked 16/11, 2011 at 21:27

2

Solved

About Spring Security to let, control and get access to the h2 web console I read these two posts: Spring Boot /h2-console throws 403 with Spring Security 1.5.2 H2 console and Spring Security - pe...
Warrenne asked 26/1, 2021 at 0:21

10

Solved

I've tried many of the solutions given on Stackoverflow for that problem but none of them worked for me. This is my H2 Console login page: my console: my "application.properties" is on default...
Reveille asked 30/10, 2017 at 14:48

13

Solved

I'm trying to associate a list of function (whom Embeddable) within my Employee Entity and H2 seems unhappy with this saying that it expected an "identifier" Caused by: org.h2.jdbc.JdbcSQLExcept...
Flyblow asked 13/10, 2017 at 20:15

4

As the title reads, I am trying to open a .h2.db file using DataGrip on MacOS. However, I keep getting the error Unsupported database file version or invalid file header in file With the error c...
Rayborn asked 21/11, 2016 at 20:56

6

Solved

I`m building a skeletal project for dev with spring 4 boot security and others. Using H2 while attempting to log into the db console and manage my db i get the following error. The page is blank, w...
Unswear asked 6/10, 2014 at 15:55

5

Solved

I've created a Java Spring Boot service using the WebFlux reactive module, H2 in-memory database, and R2DBC reactive driver. When I run the service, it fails with an "Unable to create a Connec...
Civic asked 13/5, 2021 at 23:29

5

Can I enable HTTP/2 for my website hosted on OpenShift? I know you can use CloudFlare as a proxy, then it will provide support for HTTP/2. But I am interested in is the ability to configure precis...
Cockchafer asked 14/1, 2016 at 19:28

27

I am getting error after opening the h2 database console. I enter database name but it is showing database not found error: Database "C:/Users/Barlekar/onlineshoppings" not found, and IFEXISTS=...
Herisau asked 26/3, 2019 at 3:20

4

Solved

I am using Liquibase in my Spring web application. I have a bunch of entities with hundreds of tests for REST APIs in the integration tests for each entity like User, Account, Invoice, License etc....
Sprang asked 24/10, 2016 at 3:21

3

Solved

I have a spring boot app, and I want to configure my H2 database with Yaml. It crashes whenever I would run this. My app.yml file: spring: database: h2 console: true path: /h2 datasource: pl...
Pros asked 5/6, 2019 at 15:1

4

Solved

I have created two tables user and contact. The user is the parent and contact is the child table. I refer userId as the foreign key in contact table. I have gone through the following query. CREA...
Colombi asked 22/4, 2018 at 20:14

10

Solved

I'm writing my unit tests using JUnit, PowerMock, Spring Test and an in-memory H2 database. When I run the tests from Intellij everything runs correctly. But when I run the tests from maven (either...
Halfcock asked 8/3, 2017 at 18:37

5

Solved

I have evolution problem Unknown data type: "JSONB" when running tests in playframework using playframework v2.6.6 for scala play-slick v3.0.2 play-slick-evolutions v3.0.2 postgresql - 42.0.0 h2...
Floorman asked 21/12, 2017 at 11:53

1

I am running a unit test set up as a DataJpaTest with an H2 database. It worked well, until I introduced a new Immutable Entity set using a Subselect. It does not break, but it does not find data t...
Toile asked 20/9, 2020 at 21:18

2

Solved

I'm using mybatis-spring 1.2.3 together with Spring4 to create a web application. The main data storage is MySQL in production environment, but I also use in-memory database H2 in unit testing. My...
Selah asked 10/11, 2015 at 9:44

4

I had to update Spring Boot starter from 2.1.4.RELEASE to 2.2.6.RELEASE, but now the integration tests are failing. My tests are in Groovy, my application is written in Java. They runned well with ...
Wombat asked 30/10, 2020 at 21:2

© 2022 - 2024 — McMap. All rights reserved.