title: Adding Schema name to entity in Spring data?
body: <p>I am getting an error when using an <code>Oracle DB</code> and <code>Spring Data</code>. The error is:</p>
  
  <pre><code>ORA-00942: table or view does not exist
  </code></pre>
  
  <p>The cause of this error is that the user I am connecting with <strong>does not</strong> have access to the tables in the schemas I wish to connect to. </p>
  
  <p>I read that 2 fixes to this are to create <code>synonyms</code> in my database or to specify the <code>schema</code> that each entity/table belongs to.</p>
  
  <p>I am going to try the Schema approach first. How do I do so?</p>
  
  <p>My <strong>example entity</strong> below, a <em>Dog</em> in the <em>Vet</em> Schema:</p>
  
  <pre><code>@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...
  </code></pre>