Code:
public class A{
private List<InstanceIdentifier> observationPrimaryIds=new ArrayList<InstanceIdentifier>();
@Transient
@Field(name = "observation.primaryId.extension")
@FieldBridge(impl = ObservationPrimaryIdsFieldBridge.class)
public List<InstanceIdentifier> getObservationPrimaryIds() {
return this.observationPrimaryIds;
}
}
As described above, I have this kind of field, the index can be saved well. But if I saveOrUpdate(A) when observationPrimaryIds is not set, the observation.primaryId.extension index which had something will be empty.
My question: Can field be omitted when save or updated if not modified?
Thanks in advance.
--suyejun