Hibernate Ehcache NOT working for SQL Native query cache

前端 未结 3 2052
清歌不尽
清歌不尽 2021-02-06 07:50

I am getting error

aliases expected length is 1; actual length is 4
    at org.hibernate.transform.CacheableResultTransformer.transformTuple

I

3条回答
  •  梦如初夏
    2021-02-06 08:21

    In your case, EHCache can only be used with JPQL queries. That will also mean you will have to rewrite your query not to use sub-selects, unions or similar native sql constructions.

提交回复
热议问题