Skip to content

Commit 0d2fa6e

Browse files
johnlinpvladmihalcea
authored andcommitted
HHH-13156 - Enhance the @AnyMetaDef annotation section with more details about the optimal placement
1 parent 9ff14a3 commit 0d2fa6e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

documentation/src/main/asciidoc/userguide/chapters/domain/associations.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,6 @@ The `property_id` is used to match the `id` column of either the `string_propert
542542
while the `property_type` is used to match the `string_property` or the `integer_property` table.
543543

544544
The table resolving mapping is defined by the `metaDef` attribute which references an `@AnyMetaDef` mapping.
545-
Although the `@AnyMetaDef` mapping could be set right next to the `@Any` annotation,
546-
it's good practice to reuse it, therefore it makes sense to configure it on a class or package-level basis.
547545

548546
The `package-info.java` contains the `@AnyMetaDef` mapping:
549547

@@ -558,7 +556,8 @@ include::{sourcedir}/any/package-info.java[tags=associations-any-meta-def-exampl
558556

559557
[NOTE]
560558
====
561-
It is recommended to place the `@AnyMetaDef` mapping as a package metadata.
559+
Although the `@AnyMetaDef` mapping could be set right next to the `@Any` annotation,
560+
if you need to reuse it, it's good practice to configure it at the class or package level.
562561
====
563562

564563
To see the `@Any` annotation in action, consider the next examples.

0 commit comments

Comments
 (0)