Skip to content

Commit

Permalink
#2313 Minor rationalisation in DomainMetadataGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
homedirectory committed Oct 2, 2024
1 parent 0ccb143 commit 7774515
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ private Optional<PropertyMetadata> mkPropId(final EntityMetadataBuilder<?, ?> en
// old code: last 2 conditions are to overcome incorrect metadata combinations
// TODO: Should an exception be thrown for incorrect definitions?
// It is probably best to delegate verification of property declarations to the compile time verifier.
else if (atMapTo != null && !isSyntheticEntityType(enclosingEntityType) && atCalculated == null) {
else if (atMapTo != null && !entityBuilder.getNature().isSynthetic() && atCalculated == null) {
final String columnName = mkColumnName(field.getName(), atMapTo);
final var propTypeMd = mkPropertyTypeOrThrow(field);
builder = Optional.of(
Expand Down

0 comments on commit 7774515

Please sign in to comment.