// public List<KObject> doInHibernate(Session session) throws HibernateException {
// Query<KObject> query = session.createQuery("select f.following.id, f.following.name, f.following.code, f.following.address, f.following.type from " + ORGANIZATION_FOLLOWER_ENTITY + " as f where f.member.id =:id", KObject.class);
//
// query.setParameter("id", id);
// return query.getResultList();
// }
// });
returntemplate.execute(session->{
List<Map<String,Object>>result=newArrayList<>();
Stringhql="select f.following.id, f.following.name, f.following.code, f.following.address, f.following.type from "+ORGANIZATION_FOLLOWER_ENTITY+" as f where f.member.id =:id";