时间:2021-07-01 10:21:17 帮助过:4人阅读
Query query = entityManager.createNativeQuery("select * from message");
query.unwrap(org.hibernate.SQLQuery.class)
.setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP);
List<Map<String, Object>> list = query.getResultList()
Hibernate5.0 EntityManager转SqlQuery并返回Map结果集
标签:set create org str from ati ring nat orm