File tree 1 file changed +5
-4
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore/util 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 32
32
* <p>A run time exception will be thrown if this annotation is applied to a property that is not
33
33
* writeable (eg, a Java Bean getter without a backing field.).
34
34
*
35
- * <p>If there are conflicts between this annotation and property name matches, this annotation will
36
- * take precedence. For example: If a POJO has a field `firstName` annotated by @DocumentId, and
37
- * there is a property from the document named `firstName` as well, the SDK will set the value to be
38
- * the document ID.
35
+ * <p>If there are conflicts between this annotation and property name matches, a runtime exception
36
+ * will be thrown. For example: If a POJO has a field `firstName` annotated by @DocumentId, and
37
+ * there is a property from the document named `firstName` as well, an exception will be thrown when
38
+ * you try to read document into the POJO via {@link DocumentSnapshot#toObject} or {@link
39
+ * DocumentReference#get}.
39
40
*
40
41
* <p>When writing a POJO to Firestore, the @DocumentId-annotated property will be ignored, to allow
41
42
* writing to any documents that are not the origin of the POJO.
You can’t perform that action at this time.
0 commit comments