mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Make Query.Property parameterised with <BT> "Base Type" as Number, String, Temporal, Boolean or Object
These types then determine which functions are valid for the types. So: - Number functions - String/varchar functions - Temporal Date, DateTime, Time functions - Boolean functions - Object being everything else
This commit is contained in:
@@ -15,8 +15,7 @@ public class TestStdFunctions {
|
||||
|
||||
@Test
|
||||
void coalesceLike() {
|
||||
var name = Query.Property.of("name");
|
||||
|
||||
Query.Property<String> name = Query.Property.of("name");
|
||||
var query = DB.find(Customer.class)
|
||||
.select(coalesce(name, "na").toString())
|
||||
.where()
|
||||
|
||||
Reference in New Issue
Block a user