Skip to content

Commit 82f0e9b

Browse files
authored
Make clear that val properties cannot be used with no-arg compiler plugin
quarkusio#45500
1 parent e675ab7 commit 82f0e9b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/src/main/asciidoc/mongodb-panache.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,12 @@ data class Person (
861861
): PanacheMongoEntity()
862862
----
863863

864+
[IMPORTANT]
865+
====
866+
Unlike the @BsonCreator approach, `val` cannot be used here. Properties must be defined as `var`, otherwise, the system creates an object with
867+
`null` values for every property.
868+
====
869+
864870
[[reactive]]
865871
== Reactive Entities and Repositories
866872

0 commit comments

Comments
 (0)