Skip to content

feat: Support value classes with compile-time metamodel adaptation#87

Merged
luanpotter merged 4 commits intomainfrom
luan.value-2
Jan 7, 2026
Merged

feat: Support value classes with compile-time metamodel adaptation#87
luanpotter merged 4 commits intomainfrom
luan.value-2

Conversation

@luanpotter
Copy link
Member

@luanpotter luanpotter commented Jan 2, 2026

A spiritual successor to : #81 ; Fixes #79

Instead of using reflection, this solves the same problem at compile time by adding the capability of column defs defining a type adapter for querying. So far it is a functional interface with a single method, but could be expanded if we have more needs.

This should have negligible impact into any non-value class queries. It does mean we are "unwrapping" for value classes but we must do that to interop with Hibernate (there is no other possible way).

Copy link
Collaborator

@QuinnB73 QuinnB73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Big fan of the functional interface to simplify the code gen

@luanpotter luanpotter requested a review from Nava2 January 5, 2026 13:23
@faire-pr-bot-app
Copy link

Looks like the following requested reviewers are unavailable:

  • Nava2: 🎅:skin-tone-2: OOO until Jan 6th, 2026! See y'all next year

Copy link
Contributor

@Nava2 Nava2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving to unblock

@luanpotter luanpotter merged commit 097b92e into main Jan 7, 2026
7 checks passed
@luanpotter luanpotter deleted the luan.value-2 branch January 7, 2026 16:55
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.

Automatically unwrap inline value classes at query compilation time

3 participants