title: nested exception is org.hibernate.exception.ConstraintViolationException
body: <p>hi all i have question,</p>
  <p>i have tried to hit my endpoint, my entity like this</p>
  <pre><code>@Builder
  @Entity
  @AllArgsConstructor
  @NoArgsConstructor
  @Getter
  @Setter
  @Table(name = &quot;address&quot;)
  public class Address extends Audit implements Serializable {
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
       @Column(name = &quot;id&quot;, nullable = false)
      private Integer id;
  
  @Column(name = &quot;firstAddress&quot;, nullable = false)
  private String firstAddress;
  
  @Column(name = &quot;secondAddress&quot;, nullable = false)
  private String secondAddress;
  
  @Column(name = &quot;city&quot;, nullable = false)
  private String city;
  
  }
  </code></pre>
  <p>but when i hit with my postman like this</p>
  <pre><code>{
    &quot;firstAddress&quot;: &quot;panda street 5&quot;,
    &quot;secondAddress&quot;: &quot;Mentari 5&quot;,
    &quot;city&quot;: &quot;Semarang&quot;
  }
  </code></pre>
  <p>i got error like this, i think this error because of data integrity for ID. cannot generate Identity on my Entity</p>
  <pre><code>DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [id&quot; of relation &quot;address]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
  </code></pre>
  <p>this is my service</p>
  <pre><code>public interface AddressService {
  
      Address insert(Vendor vendor);
  }
  </code></pre>
  <p>@Service</p>
  <pre><code>public class AddressServiceImpl implements AddressService {
      private AddressRepository addressRepository;
      public AddressServiceImpl(AddressRepository addressRepository) {
          this.addressRepository = addressRepository;
      }
  @Override
      public Address insert(Address address) {
          if (address == null) {
              throw new IllegalArgumentException(&quot;Address can't be null&quot;);
          }
          return address Repository.save(vendor);
      }
  }
  </code></pre>
  <p>here my repo</p>
  <pre><code>public interface AddressRepository extends JpaRepository&lt;Address, Integer&gt;, JpaSpecificationExecutor&lt;Address&gt; {
  
  }
  </code></pre>