/** * Create the entity by combining the stored key and data. This "tricky" binding returns the * stored data as the entity, but first it sets the transient key fields from the stored key. */ public Object entryToObject(TupleInput keyInput, Object dataInput) { String partNumber = keyInput.readString(); String supplierNumber = keyInput.readString(); Shipment shipment = (Shipment) dataInput; shipment.setKey(partNumber, supplierNumber); return shipment; }