Manage @NamedNativeQuery and schema

前端 未结 2 2023
独厮守ぢ
独厮守ぢ 2021-01-19 04:04

I have many EntityManager, one per schema that I have (I use entity-mappings file to map EMs with schemas). It works.

When I use @Nam

2条回答
  •  遇见更好的自我
    2021-01-19 04:19

    Prefix your table name with "{h-schema}", e.g.SELECT foo FROM {h-schema}table

    (courtesy of getting hibernate default schema name programmatically from session factory?)

提交回复
热议问题