1. <legend id='u4vtW'><style id='u4vtW'><dir id='u4vtW'><q id='u4vtW'></q></dir></style></legend>

        <i id='u4vtW'><tr id='u4vtW'><dt id='u4vtW'><q id='u4vtW'><span id='u4vtW'><b id='u4vtW'><form id='u4vtW'><ins id='u4vtW'></ins><ul id='u4vtW'></ul><sub id='u4vtW'></sub></form><legend id='u4vtW'></legend><bdo id='u4vtW'><pre id='u4vtW'><center id='u4vtW'></center></pre></bdo></b><th id='u4vtW'></th></span></q></dt></tr></i><div id='u4vtW'><tfoot id='u4vtW'></tfoot><dl id='u4vtW'><fieldset id='u4vtW'></fieldset></dl></div>
      1. <tfoot id='u4vtW'></tfoot>

        <small id='u4vtW'></small><noframes id='u4vtW'>

        • <bdo id='u4vtW'></bdo><ul id='u4vtW'></ul>

        将模式名称添加到 Spring 数据中的实体?

        Adding Schema name to entity in Spring data?(将模式名称添加到 Spring 数据中的实体?)
        <i id='1LSS6'><tr id='1LSS6'><dt id='1LSS6'><q id='1LSS6'><span id='1LSS6'><b id='1LSS6'><form id='1LSS6'><ins id='1LSS6'></ins><ul id='1LSS6'></ul><sub id='1LSS6'></sub></form><legend id='1LSS6'></legend><bdo id='1LSS6'><pre id='1LSS6'><center id='1LSS6'></center></pre></bdo></b><th id='1LSS6'></th></span></q></dt></tr></i><div id='1LSS6'><tfoot id='1LSS6'></tfoot><dl id='1LSS6'><fieldset id='1LSS6'></fieldset></dl></div>
          <tfoot id='1LSS6'></tfoot>

            <tbody id='1LSS6'></tbody>

            1. <legend id='1LSS6'><style id='1LSS6'><dir id='1LSS6'><q id='1LSS6'></q></dir></style></legend>

            2. <small id='1LSS6'></small><noframes id='1LSS6'>

                <bdo id='1LSS6'></bdo><ul id='1LSS6'></ul>
                1. 本文介绍了将模式名称添加到 Spring 数据中的实体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  使用 Oracle DBSpring Data 时出现错误.错误是:

                  I am getting an error when using an Oracle DB and Spring Data. The error is:

                  ORA-00942: table or view does not exist
                  

                  这个错误的原因是我正在连接的用户没有可以访问我希望连接的架构中的表.

                  The cause of this error is that the user I am connecting with does not have access to the tables in the schemas I wish to connect to.

                  我读到有两个解决方法是在我的数据库中创建 synonyms 或指定每个实体/表所属的 schema.

                  I read that 2 fixes to this are to create synonyms in my database or to specify the schema that each entity/table belongs to.

                  我将首先尝试 Schema 方法.我该怎么做?

                  I am going to try the Schema approach first. How do I do so?

                  下面是我的示例实体Vet架构中的:

                  My example entity below, a Dog in the Vet Schema:

                  @Entity
                  @Table(name = "Dog")
                  public class Dog
                  {
                      @Id
                      private String id;
                  
                      @Column(name = "NAME")
                      private String name;
                  
                      @Column(name = "Owner")
                      private String owner;
                  
                    //getters and setters etc...
                  

                  推荐答案

                  @Table注解提供了schema属性:

                  @Table(name = "Dog", schema = "Vet")
                  

                  这篇关于将模式名称添加到 Spring 数据中的实体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                  <tfoot id='oHhHy'></tfoot>
                    <tbody id='oHhHy'></tbody>

                        <bdo id='oHhHy'></bdo><ul id='oHhHy'></ul>

                        <legend id='oHhHy'><style id='oHhHy'><dir id='oHhHy'><q id='oHhHy'></q></dir></style></legend>

                          <small id='oHhHy'></small><noframes id='oHhHy'>

                          <i id='oHhHy'><tr id='oHhHy'><dt id='oHhHy'><q id='oHhHy'><span id='oHhHy'><b id='oHhHy'><form id='oHhHy'><ins id='oHhHy'></ins><ul id='oHhHy'></ul><sub id='oHhHy'></sub></form><legend id='oHhHy'></legend><bdo id='oHhHy'><pre id='oHhHy'><center id='oHhHy'></center></pre></bdo></b><th id='oHhHy'></th></span></q></dt></tr></i><div id='oHhHy'><tfoot id='oHhHy'></tfoot><dl id='oHhHy'><fieldset id='oHhHy'></fieldset></dl></div>