JetBrains / JetBrains/Exposed

How to initialize bean after exposed?

Open
#704 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
9.3k
Forks
798
Avg merge
4d 2h
Merged PRs (30d)
26

Description

Hi,

I'm developing a Spring Boot application, and I'm using h2 database for unit tests. One of my bean retrieves data from database just after created.

During unit tests, this bean is initialized before creating exposed tables. So, when it tries to go database, database throws no table found error.

Is there any way to initialize that bean after exposed creates table?

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.