public int computeHashCodeFromRelated(Object _srcObject, Object _srcData) { PetData _castedSrcData = (PetData) _srcData; return HashUtil.hash(_castedSrcData.getPersonId()); }
public int getPersonId() { return this.zSynchronizedGetData().getPersonId(); }
public boolean equalsForRelationship(Object _srcObject, Object _srcData, Object _targetData, Timestamp _asOfDate0, Timestamp _asOfDate1) { PetData _castedSrcData = (PetData) _srcData; PersonData _castedTargetData = (PersonData) _targetData; if (_castedSrcData.getPersonId() == _castedTargetData.getPersonId()) { return true; } return false; }
public boolean zNonPrimaryKeyAttributesChanged(MithraDataObject newData, double toleranceForFloatingPointFields) { final PetData other = (PetData) newData; if ( getPersonId() != other.getPersonId()) { return true; } if ( getPetAge() != other.getPetAge()) { return true; } if ( getPetTypeId() != other.getPetTypeId()) { return true; } return false; }
protected void copyNonPrimaryKeyAttributesFromImpl(MithraTransactionalObject f, MithraTransaction tx) throws MithraBusinessException { PetAbstract from = (PetAbstract) f; PetData newData = from.zSynchronizedGetData(); this.setPersonId(newData.getPersonId()); this.setPetAge(newData.getPetAge()); this.setPetTypeId(newData.getPetTypeId()); }
stm.setInt(pos++, data.getPersonId()); stm.setInt(pos++, data.getPetAge()); stm.setInt(pos++, data.getPetTypeId());
public void copyNonPkAttributes(MithraDataObject newData) { final PetData petData = (PetData) newData; this.setPersonId(petData.getPersonId()); this.setPetAge(petData.getPetAge()); this.setPetTypeId(petData.getPetTypeId()); this.setProcessingDateFrom(petData.getProcessingDateFrom()); this.setProcessingDateTo(petData.getProcessingDateTo()); }
if (_related == null) _op = PersonFinder.personId().eq(_data.getPersonId()); Operation detachedOp = PersonFinder.personId().eq(_data.getPersonId()); _result = PersonFinder.zFindOneForRelationship(detachedOp); if(_result != null) _op = PersonFinder.personId().eq(_data.getPersonId());