Paths
Kotlin JDSL has the Path
interface to represent a path expression in JPQL. Use path()
and invoke()
to build Path
.
Java entity
path()
and invoke()
can take KProperty1
or KFuction1
as an argument. KFunction1
is useful when you use Java entity with private property and public getter.
Kotlin JDSL infers the property name from the getter with the following rules:
If the name starts with
is
, use the name as it is.If the name starts with
get
, removeget
and change the first letter to lowercase.Otherwise, use the name as it is.
Expression
Treat
Use treat()
to typecast Path
to subclass.
Last updated
Was this helpful?