Entities
Kotlin JDSL has the Entity
interface to represent an entity in JPQL. Use entity()
to build Entity
.
Alias
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
.
Expression
Entity
can be used as Expression
in a select clause or predicate.
Treat
Use treat()
to typecast Entity
to subclass.
Last updated