Skip to content

Commit e89779a

Browse files
Docs: start to deprecate old query API to encourage using the new one
Not deprecating all QueryBuilder conditions, yet. Just another nudge to the new APIs.
1 parent 9b1fb1a commit e89779a

File tree

1 file changed

+3
-2
lines changed
  • objectbox-java/src/main/java/io/objectbox

1 file changed

+3
-2
lines changed

objectbox-java/src/main/java/io/objectbox/Box.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,10 @@ public long panicModeRemoveAll() {
595595

596596
/**
597597
* Returns a builder to create queries for Object matching supplied criteria.
598-
* <p>
599-
* New code should use {@link #query(QueryCondition)} instead.
598+
*
599+
* @deprecated New code should use {@link #query(QueryCondition)} instead.
600600
*/
601+
@Deprecated
601602
public QueryBuilder<T> query() {
602603
return new QueryBuilder<>(this, store.getNativeStore(), store.getDbName(entityClass));
603604
}

0 commit comments

Comments
 (0)