h2 Questions
3
Solved
We are upgrading an application from spring-boot 2.4.3 to 2.7.0. Hibernate core version is 5.6.9.Final.
2.7.0 is the first one to use H2 database 2.1.212 and we are using it for tests.
I made some ...
Dunn asked 27/5, 2022 at 8:59
4
Solved
I am using below spring boot config:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.1.R...
Friedrick asked 6/7, 2020 at 2:1
6
Solved
While trying to connect H2 data source by URL in Intelij, following error occurs:
The write format 1 is smaller than the supported format 2
Genome asked 11/4, 2022 at 15:20
4
I was using Spring Boot 2.6.8 along with Liquibase which works fine. This is used with a MySQL database when running in production. For integration tests we run it against a H2 in memory database.
...
Russianize asked 24/5, 2022 at 10:41
1
Event though the built-in H2 EmbeddedDatabaseConfigurer provides a JDBC connection with DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false options set, the annoying exception is caused by AbstractEmbeddedDat...
Cynth asked 17/3, 2015 at 10:24
3
Solved
Unable to test Spring Boot & H2 with a script for creation of table using schema.sql.
So, what’s happening is that I have the following properties set:
spring.datasource.driver-class-name=org...
Parlin asked 19/12, 2017 at 21:7
4
I am using spring-boot and have an H2 database configured like so (in the application.properties).
spring.datasource.url=jdbc:h2:mem:AZ;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.d...
2
Solved
i am using H2 in memory database for testing and my configuration is as follows:
1- SpringTestingConfig:
@Configuration
@ComponentScan(basePackages = "com.myapp.data", excludeFilters = { @Filter(...
Neckpiece asked 26/7, 2013 at 17:2
5
Solved
I'm creating rest api and implemented Spring Security - everything works fine but I want (for now, when I'm still developing) to be able for anyone without authorization to open localhost:8080/cons...
Mcginley asked 31/1, 2017 at 15:26
4
Solved
I use maven conventions for source paths (src/main src/test) and i have my sql scripts in src/main/resources/scripts.
I want to run my app with H2 memory and i'd like to use the jdbc url to initia...
Sudiesudnor asked 20/12, 2010 at 13:38
3
Solved
I am using H2 in-memory database for my springboot application. Where I have enabled hibernate.ddl-auto. I am getting below exception while hibernate is creating a schema
Caused by: org.h2.jdbc.Jdb...
Engrave asked 23/2, 2021 at 12:27
3
We are using H2 database for testing purposes, but when I store BigDecimal value into it using Hibernate and then load it back the value is truncated to two decimal places:
The field definition lo...
3
Solved
I'm facing an error when Spring Boot try to insert data in a table. I'm using H2 and Spring Boot 2.5.0. It's seems that Spring is not creating the table.
Here is my entity
@Entity(name = "User...
Delft asked 24/5, 2021 at 20:3
5
Solved
I asked earlier today about replacing a window function because H2 does not support it.
I rewrote SQL query but every time I get syntax error in the SQL query (posted below)
expected "UNION, M...
6
I'm building a Spring application and I need to inspect my H2 in-memory database while I'm running my JUnit tests from a web browser.
In my Spring configuration I have a bean which is responsible ...
12
Solved
I tried googling around, but the solution to almost all this kind of questions was to add ;DB_CLOSE_DELAY=-1, however it does not solve anything for me.
Here is my test class
@RunWith(SpringJUni...
7
Solved
I am trying to configure my spring boot application to use h2 console. I found some articles and all of them use webServlet. But I can not import the class although I have h2 dependency added in my...
Parrie asked 1/7, 2016 at 18:0
9
Just created a simple spring-boot project from the spring initializer. I went to add a local h2 db for testing and am unable to login. Seems that it cannot create the test db when starting up but c...
Commutate asked 19/5, 2019 at 16:15
2
Solved
I'm trying to leverage H2 for testing and have the following configuration in src/test/resources/application.yaml:
spring:
r2dbc:
url: r2dbc:h2:file://testdb
I have an empty test annotated wit...
Selden asked 9/6, 2020 at 7:41
4
I am using r2dbc, r2dbc-h2 and experimental spring-boot-starter-data-r2dbc
implementation 'org.springframework.boot.experimental:spring-boot-starter-data-r2dbc:0.1.0.M1'
implementation 'org.spring...
Corazoncorban asked 24/12, 2019 at 12:32
4
Solved
I am porting my Java application which was developed for Windows to AIX Unix. On Windows it uses SQL Server for configuration. On AIX we are trying to use H2 database. Most of the code works but I ...
3
Solved
I have created database with my own program and it appeared as mydatabase.mv.db file.
But when I tried to access the same database with DbVisualizer, with apparently same parameters, it created t...
Horwath asked 24/11, 2014 at 0:51
4
Solved
I'm trying to access my application's tables in Play! Framework, but I can't find it using the console.
For instance, I have two entity models: Address and Campus.
I can create objects and save no...
Iliad asked 7/6, 2011 at 13:31
5
I was trying to add an field to my entity as a CLOB. When using the JHipster CLI it was no problem to add it.
Now, when i trying to start my application i get the following validation error from ...
Appetizing asked 4/4, 2017 at 12:23
3
Solved
I have spring-boot application based on maven.
I want to have h2 database as dependency only for tests so I have it as follows:
<dependency>
<groupId>com.h2database</groupId>
...
Maighdiln asked 2/7, 2018 at 12:3
© 2022 - 2024 — McMap. All rights reserved.