protected BooleanExpression withId(String id) { SimplePath<Long> entityId = Expressions.path(Long.class, getMainEntity(), "id"); return entityId.eq(Long.valueOf(id)); }
protected BooleanExpression withUuid(String uuid) { SimplePath<String> entityUuid = Expressions.path(String.class, getMainEntity(), "uuid"); return entityUuid.eq(uuid); }