Let's say we have an entity
@Entity
public class Person {
@Id int id;
@Basic String name;
@Basic String remark;
}
Let's say "remark" field is filled with big texts, but rarely used. So it would be good if when you run jpql: SELECT p FROM Person p
, EclipseLink just executes sql select id, name from person
And than when you call person.getRemark()
, it will get fetched with select remark from person where id = ?
.
Is it possible with EclipseLink 2.1?