与类似,我希望使用我自己的用户定义类型"AccountNumber“来执行SQL操作。public final SimplePath<com.myorg.types.AccountNumber> accountNumber;final Path path=QBusinessEvent.businessEvent.accountNumber;
final Expression<AccountNumber> constant
是否可以过滤字符串列包含特殊子字符串的行?像.whereContains("name", "Pavel")这样的表达式抛出异常:Exception: Filter "Contains" is not supported for mapping "String"。当然,我可以很容易地使用scala过滤器,但是DB应该做得更好,不是吗?