Update entity relationship and query dsl