o.bankAccounts here is an ElementCollection of AccountId, so we supply an AccountId instance as the value of ?1. EclipseLink appears to be supplying the AccountId instance to the SQL statement it ...