JetBrains / JetBrains/Exposed

EntityClass companion object constructor is not invoked because it's not referenced anywhere

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

Description

I'm subscribing to EntityHooks in an init { } block of my companion object extending UUIDEntityClass of an Entity.
However, the init() block is not invoked because it seems that the library does not reference it at all.
This leads to all EntityHooks not being invoked.
I understand that this is a normal behavior for lazy initialization of companion objects, but what would be a better place to put my EntityHook initialization in from an architectural standpoint?

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.