title: Long column size in JPA/Hibernate
body: <pre><code>@Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Basic(optional = false)
  @Column(name = COMPANY_ID , length = 10)
  private Long id;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/AnOBw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AnOBw.png" alt="enter image description here"></a></p>
  
  <p>in my sql it gets converted to BIGINT(20),what if i want it to be int(11) or how to give specific size to Long field??</p>