Hi.
I have a class with say 3 variables as below. I would like to read say primary key object associated with say id=3. However, as I understand that this reading is only to update the filed 'vehicleList'. In such case, is it possible to have ASliderDO object with all the 3 fields data to be empty and choice of updating vehicleList with entirely new data.
This approach would bring down DB traffic. This must be very much possible.. not sure how..?
public final class ASliderDO extends PDOPersistent
{
//.... the super class has primary key id...
@OneToOne(cascade = CascadeType.ALL)
private ASliderConfigDO sliderConfig;
@OneToOne(cascade = CascadeType.ALL)
private CommonImgDO commonImg;
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private List<VehicleDO> vehicleList;
..
}
Regards,
Raja Nagendra Kumar
C.T.O
www.tejasoft.com