Skip to content

Conversation

@lpandzic
Copy link
Member

@lpandzic lpandzic commented Jan 8, 2026

Fixes #113

lpandzic and others added 4 commits January 8, 2026 11:23
Add support for Spring Data JDBC @Embedded annotation prefix attribute
to handle multiple embedded fields with different prefixes. Previously,
when an entity had multiple embedded fields (e.g., player1_ and player2_),
the annotation processor generated duplicate field names causing conflicts.

Changes:
- Modified CustomExtendedTypeFactory to extract and apply prefixes when
  flattening embedded properties
- Updated CustomMetaDataSerializer to generate prefixed column names
- Enhanced QuerydslExpressionFactory to handle prefix-aware constructor
  expression building for embedded types at runtime
- Added comprehensive tests for annotation processor and runtime behavior

Fixes #113

Co-Authored-By: Claude <[email protected]>
@lpandzic lpandzic merged commit 7f50818 into master Jan 8, 2026
4 checks passed
@lpandzic lpandzic deleted the issue-113 branch January 8, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spring Data JDBC @Embeded prefix not supported

2 participants