如何在hibernate原生SQL中处理模式
我正在spring boot应用程序的hibernate中设置默认模式,如下所示:如何在hibernate原生SQL中处理模式,hibernate,spring-boot,orm,Hibernate,Spring Boot,Orm,我正在spring boot应用程序的hibernate中设置默认模式,如下所示: properties.put(""hibernate.default_schema, "myschema"); 我必须在SQL中重新放置模式吗 select col1, col2 from myschema.table 如果您在Hibernate配置的数据源创建中进行了配置,则应该能够访问架构 select col1, col2 from {h-schema}table;
properties.put(""hibernate.default_schema, "myschema");
我必须在SQL中重新放置模式吗
select col1, col2 from myschema.table
如果您在Hibernate配置的数据源创建中进行了配置,则应该能够访问架构
select col1, col2 from {h-schema}table;