title: SpringBoot JPARepository JpaSystemException
body: <p>I am using MS SQL server db and getting 'org.springframework.orm.jpa.JpaSystemException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet'</p>
  <p>Entity Class:</p>
  <pre><code>    @Entity
      @Getter
      @NoArgsConstructor
      @Table(name = &quot;ABC_Data&quot;)
  
  public class WeeklyActualESBDao
  {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @JsonIgnore
      @Column(name = &quot;ESB_Actuals_Data_ID&quot;)
      private Integer    actualsId;
  
      @Column(name = &quot;division&quot;)
      private Integer    division;
  
      @Column(name = &quot;familyTreeLevel&quot;)
      private String     familyTreeLevel;
  
      @Column(name = &quot;departmentCode&quot;)
      private Integer    departmentCode;
  
      @Column(name = &quot;year&quot;)
      private Integer    year;
  
      @Column(name = &quot;period&quot;)
      private Integer    period;
  
      @Column(name = &quot;week_of_period&quot;)
      private Integer    weekOfPeriod;
  
      @Column(name = &quot;net_sales&quot;)
      private BigDecimal netSales       = new BigDecimal(0);
  
      @Column(name = &quot;delivered_gross&quot;)
      private BigDecimal deliveredGross = new BigDecimal(0);
  
      @Column(name = &quot;units&quot;)
      private Integer    units;
  }
  </code></pre>
  <p>Repository class:
  public interface PrimaryDepartmentSalesESBRepository
  extends JpaRepository&lt;WeeklyActualESBDao, Integer&gt;{}</p>
  <p>Datatype of columns in DB..</p>
  <p>ESB_Actuals_Data_ID ( bigint autoincrement)
  division ( int)
  familyTreeLevel ( char 64)
  departmentCode( int)
  year ( int )
  period ( int )
  weekOfPeriod( int)
  netsales ( numeric 30,10 ) etc</p>