vijaych1209 wrote:
I have a POJO as below
public class CategoryVO implements Serializable, Cloneable {
private long categoryId;
private String categoryName;
private List<ChannelVO> channelList;
public void setCategoryId(long categoryId) {
this.categoryId = categoryId;
}
public long getCategoryId() {
return categoryId;
}
public void setCategoryName(String categoryName) {
this.categoryName = categoryName;
}
public String getCategoryName() {
return categoryName;
}
public void setChannelList(List<ChannelVO> channelList) {
this.channelList = channelList;
}
public List<ChannelVO> getChannelList() {
return channelList;
}
}
When I execute a criteria for this class, all fields are populated per the mapping.
What I want is the control over populating channelList during execution time. Is there a way I can do that, since populating channelList is an expensive process and sometimes we would only need category and not channels.
With control I mean, not fetching channelList (set to null) and just get the criteria.