Entities
Last updated
Last updated
Kotlin JDSL has the Entity
interface to represent an entity in JPQL. Use entity()
to build Entity
.
All Entity
has an alias. If you don't specify an alias in entity()
, Kotlin JDSL automatically generates an alias from the class name. Entity
is identified by its alias. If you use more than one Entity
with the same type, you need to alias them to identify each Entity
.
Entity
can be used as in a or .
Use treat()
to typecast Entity
to subclass.