Class EntityProperty<E extends Persistent>

java.lang.Object
org.apache.cayenne.exp.property.BaseProperty<E>
org.apache.cayenne.exp.property.EntityProperty<E>
All Implemented Interfaces:
PathProperty<E>, Property<E>, RelationshipProperty<E>

public class EntityProperty<E extends Persistent> extends BaseProperty<E> implements RelationshipProperty<E>
Property that represents to-one relationships.

Usage examples in where clause:


 ObjectSelect.query(Paintings.class)
      .where(Painting.TO_ARTIST.dot(Artist.ARTIST_NAME).eq("Pablo Picasso"));

Usage examples in column select, in this case full Artist entity will be returned in the result:


 ObjectSelect
      .columnQuery(Paintings.class, Painting.PAINTING_TITLE, Painting.TO_ARTIST);
Since:
4.2
See Also: