Address function ( String arg0 , int arg1 ) { for ( Address loc0 : testdata . getAddresses ( ) ) { if ( ( loc0 . getPostcode ( ) . equals ( arg0 ) ) && ( loc0 . getHouseNumber ( ) == arg1 ) ) { return loc0 ; } } return null ; }
another candidate key is the postcode and the house number of the address . this should therefore return only one address . concode_field_sep TestData testdata concode_field_sep void updateAddress concode_elem_sep Address findByCustomerId concode_elem_sep Address createNewAddress concode_elem_sep void deleteAddress concode_elem_sep Address findByAddressId