Skip to content

Commit eee10d9

Browse files
ToOne docs: typo in class description, polish while at it.
1 parent b679463 commit eee10d9

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

objectbox-java/src/main/java/io/objectbox/relation/ToOne.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
* A to-relation is unidirectional: it points from the source entity to the target entity.
3434
* The target is referenced by its ID, which is persisted in the source entity.
3535
* <p>
36-
* If their is a backlink {@link ToMany} relation based on this to-one relation,
37-
* the ToMany object will not be notified/updated about changes done here (use {@link ToMany#reset()} if required).
36+
* If there is a {@link ToMany} relation linking back to this to-one relation (@Backlink),
37+
* the ToMany object will not be notified/updated about persisted changes here.
38+
* Call {@link ToMany#reset()} so it will update when next accessed.
3839
*/
3940
// TODO add more tests
4041
// TODO not exactly thread safe

0 commit comments

Comments
 (0)