@NamedNativeQuery - How can I bind it to a repository method?

前端 未结 2 1376
别那么骄傲
别那么骄傲 2020-12-17 14:44

I am using Spring + Hibernate and I have a particular case where I need to obtain (a list of) non-Entity objects as a result of the qu

2条回答
  •  一整个雨季
    2020-12-17 15:19

    The name value on the @NamedNativeQuery needs to be set to "AdDailyDataEntity.aggregateRevenue". The first part (before the dot) needs to match the entity class name.

提交回复
热议问题