Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在hibernate原生SQL中处理模式_Hibernate_Spring Boot_Orm - Fatal编程技术网

如何在hibernate原生SQL中处理模式

如何在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;

我正在spring boot应用程序的hibernate中设置默认模式,如下所示:

properties.put(""hibernate.default_schema, "myschema");
我必须在SQL中重新放置模式吗

select col1, col2 from myschema.table

如果您在Hibernate配置的数据源创建中进行了配置,则应该能够访问架构

select col1, col2 from {h-schema}table;