Skip to content

Commit

Permalink
feat(dsl): add dsl for lower function support
Browse files Browse the repository at this point in the history
  • Loading branch information
waahhh committed Oct 23, 2023
1 parent 018b904 commit 8e185c1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dsl/jpql/src/main/kotlin/com/linecorp/kotlinjdsl/dsl/jpql/Jpql.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,22 @@ open class Jpql : JpqlDsl {
return Expressions.type(path.toPath())
}

/**
* Creates an expression that represents the string in lowercase.
*/
@SinceJdsl("3.0.0")
fun lower(string: String): Expression<String> {
return Expressions.lower(Expressions.value(string))
}

/**
* Creates an expression that represents the string in lowercase.
*/
@SinceJdsl("3.0.0")
fun lower(string: Expressionable<String>): Expression<String> {
return Expressions.lower(string.toExpression())
}

/**
* Creates an expression that represents the length of the string as an integer.
*/
Expand Down

0 comments on commit 8e185c1

Please sign in to comment.