Add parameter type for Query.Property with DefaultUpdateQuery and TQRootBean

This commit is contained in:
Rob Bygrave committed 2022-11-09 23:41:42 +13:00
1 parent 3c8c52ca7f
commit 4a0f8931a0
2 files changed
+3 -3

No files matched your search

@@ -36,12 +36,12 @@ public final class DefaultUpdateQuery<T> implements UpdateQuery<T> {
} }
@Override @Override
public UpdateQuery<T> set(Query.Property property, Object value) { public <P> UpdateQuery<T> set(Query.Property<P> property, P value) {
return set(property.toString(), value); return set(property.toString(), value);
} }
@Override @Override
public UpdateQuery<T> setNull(Query.Property property) { public UpdateQuery<T> setNull(Query.Property<?> property) {
return setNull(property.toString()); return setNull(property.toString());
} }
@@ -282,7 +282,7 @@ public abstract class TQRootBean<T, R> {
* *
* @param properties the list of properties to fetch * @param properties the list of properties to fetch
*/ */
public final R select(Query.Property... properties) { public final R select(Query.Property<?>... properties) {
((SpiQueryFetch) query).selectProperties(properties(properties)); ((SpiQueryFetch) query).selectProperties(properties(properties));
return root; return root;
} }