-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedded entities can not be constructed when they use Kotlin val
properties
#1677
Comments
Care to include the full stack trace? |
Here you go:
|
Just found out that it doesn't throw an exception when making the |
Without the |
For completeness, the pair class implements an interface, and doesn't inherit from a class; data class CustomerDetailsPair(
override val relationId: UUID,
@Embedded.Empty
override val entity: CustomerDetails,
) : EntityPair<UUID, CustomerDetails>
interface EntityPair<F, S> {
val relationId: F
val entity: S
} But also when I remove the interface and the override from the properties of the pair the exception is thrown. |
@mp911de I noticed you assigned yourself; do you maybe have an update regarding this? |
To retrieve results indexed by a specific column (
relation_id
), we use "pair" classes. For example;But this results in the following exception being thrown:
When changing the
name
property to avar
, no error is thrown. The entity as a standalone entity, so not embedded, can be constructed without changing the property to avar
.The text was updated successfully, but these errors were encountered: