title: Spring boot generates wrong sql code
body: <p>I'm creating a POC for using Spring boot with my next project.
  Now I created a rest service that wil query all the data from a MS sql server database.</p>
  
  <p>The entity that I want to query looks like:</p>
  
  <pre><code>@Entity
  @Table(name = "Item", schema = "materialManagement", uniqueConstraints = @UniqueConstraint(columnNames = {
          "companyID", "number" }))
  public class Item implements java.io.Serializable {
  //all variabels are placed here
  }
  </code></pre>
  
  <p>Now when I create a repository for the Item class:</p>
  
  <pre><code>public interface NoteRepository extends JpaRepository&lt;Item, Long&gt; {
  }
  </code></pre>
  
  <p>In my controller I autowire the repo and query the repo with findAll():</p>
  
  <pre><code>@RestController
  @RequestMapping("/api")
  public class NoteController {
   @Autowired
      NoteRepository noteRepository;
  
      @GetMapping("/notes")
      public List&lt;Item&gt; getAllNotes() {
          return noteRepository.findAll();
      }
  }
  </code></pre>
  
  <p>Now when I send a request to the controller I got following error:</p>
  
  <blockquote>
    <p>com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name
    'material_management.item'.</p>
  </blockquote>
  
  <p>In the database there is indeed no material_management schema only materialManagement. But from where does that generated schema come from?</p>
  
  <p>My application.properties looks like:</p>
  
  <pre><code>&gt; spring.datasource.url =
  &gt; jdbc:sqlserver://localhost:1433;databaseName=CR_ApplicationSuite;integratedSecurity=true;
  &gt; 
  &gt; spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
  &gt; ## Hibernate Properties
  &gt; 
  &gt; # The SQL dialect makes Hibernate generate better SQL for the chosen database spring.jpa.properties.hibernate.dialect =
  &gt; org.hibernate.dialect.SQLServer2008Dialect
  </code></pre>