Expressions
Alias
val bookPrice = expression(BigDecimal::class, "price")
select(
path(Book::price)(BookPrice::value).`as`(bookPrice)
).from(
entity(Book::class)
).where(
bookPrice.eq(BigDecimal.valueOf(100))
)
// OR
select(
path(Book::price)(BookPrice::value).`as`(expression("price"))
).from(
entity(Book::class)
).where(
expression(BigDecimal::class, "price").eq(BigDecimal.valueOf(100))
)Type cast
Arithmetic operations
Parentheses
Values
Params
Literals
Type
Function
Rendered
Aggregation functions
Sum
Type
Return Type
Functions
String functions
Arithmetic functions
Datetime functions
Database function
Cases
Coalesce
NullIf
New
Type
Custom expression
ID
VERSION
Last updated