Create entity relationship between merchant,branch code and query dsl object