dataManager.load(User::class.java).all().list()
=> admin OK
=> SELECT ID, ACTIVE, EMAIL, FIRST_NAME, LAST_NAME, PASSWORD, TIME_ZONE_ID, USERNAME, VERSION FROM USER_
dataManager.load(User::class.java).condition(PropertyCondition.equal("username", "UNKNOWN")).list()
=> 0 result OK
=> SELECT ID, ACTIVE, EMAIL, FIRST_NAME, LAST_NAME, PASSWORD, TIME_ZONE_ID, USERNAME, VERSION FROM USER_ WHERE (USERNAME = ?)
dataManager.load(User::class.java).condition(PropertyCondition.equal("username", "")).list()
=> admin !!!
=> SELECT ID, ACTIVE, EMAIL, FIRST_NAME, LAST_NAME, PASSWORD, TIME_ZONE_ID, USERNAME, VERSION FROM USER_
The condition is not in the sql query ! bug in jmix 1 and 2 !
How to get a condition empty string ?