Added a comment that tries to make clear the difference between isVirtual() and isCollection()
This commit is contained in:
parent
9e8f04aa4a
commit
45d32cc2da
1 changed files with 10 additions and 6 deletions
|
@ -393,7 +393,11 @@ public final class Relation {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns true if this Relation describes a collection object property
|
||||
* Returns true if this Relation describes a collection.
|
||||
* <b>NOTE:</b> this will return true both for collection objects
|
||||
* (aka virtual nodes) and direct child object relations, so
|
||||
* isVirtual() should be used to identify relations that define
|
||||
* <i>collection properties</i>!
|
||||
*/
|
||||
public boolean isCollection() {
|
||||
return reftype == COLLECTION;
|
||||
|
|
Loading…
Add table
Reference in a new issue