title: Spring data, Oracle DB, java.sql.SQLException: Numeric Overflow
body: <p>In my application (Oracle DB[11g], Spring data, Java 8) i mapped my entity with an ID like this:</p>
  
  <pre><code>@Column(name = "MYID")
  @Id
  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "MY_SEQUENCE")
  @SequenceGenerator(sequenceName = "MY_SEQUENCE", allocationSize = 1, name = "MY_SEQUENCE")
  private Integer     id;
  </code></pre>
  
  <p>In the oracle column the type is NUMBER(38,0)</p>
  
  <p>For some data when i try to findById, the application throws: SQL Error: 17026, SQLState: null - Numeric Overflow.</p>
  
  <p>I tried changing the type of my java entity like long, BigDecimal and BigInteger, but i receive a convert Integer exception from Hibernate.</p>
  
  <p>I can't change the definition of the table on the database.</p>
  
  <p>How can resolve that problem?</p>
  
  <p>Thanks</p>