I have a lot of EntityManager , one per schema that I have (I use the entity-mappings file to map EM to schemas). He works.
When I use @NamedQuery , it works like a charm, but when I use @NamedNativeQuery , the scheme is not used. I have to go with him SELECT foo FROM schema.table .
Is this the right behavior?
I think the @NamedNativeQuery parameter cannot parametrically pass the schema (I believe that only columns can be dynamic, not tables or schemas or anything else), since I can use @NamedNativeQuery with a dynamic schema, please?
source share