Added QueryBuilderAdapter, now ResourceRepository supports unified criteria format for all ORM and ODM