Kotlin JDSL is designed to work seamlessly with various JPA mapping strategies. Here are some examples of how to query entities with advanced mappings like composite keys, inheritance, and embedded IDs.
Composite Keys with @IdClass
When an entity uses @IdClass for a composite primary key, you can query it by referencing the properties of the entity as usual.
Consider the BookAuthor entity, which has a composite key consisting of book and authorId.