Describe the bug
I have a MongoDB instance and several databases.
I don't manage to use MongoDB with Panache for several entities on different databases.
Here a simplified version of my Kotlin code :
@MongoEntity(clientName = "db1", collection = "c1")
data class C1 @BsonCreator constructor(
@BsonId var id: ObjectId = ObjectId()
) : PanacheMongoEntityBase()
Describe the bug I have a MongoDB instance and several databases. I don't manage to use MongoDB with Panache for several entities on different databases.
Here a simplified version of my Kotlin code :
My application.properties:
I have the following error:
I was expected that the database name was retrieved from quarkus.mongodb.db1.database. Am I missing something?
To Reproduce Here is a reproducer
Environment (please complete the following information):
uname -a
orver
:java -version
:mvnw --version
orgradlew --version
):https://github.com/quarkusio/quarkus/issues/10812
$upstream:10812$