add get_by & get_all_by to Entity