Query jpa first entityManager.createNativeQuery generated strong interface into the query hibernateQuery
Then you can call the method to hibernate, set the properties, the result is returned list Map <String, Object> There columnName the column name of the object
Then the jackson ObjectMapper (). ConvertValue map to convert an object pojo