iPrody / iPrody-Devs-Gr0000000008-customer-service

0 stars 2 forks source link

Customer Service: Customer Domain #11| add sequence's annotation for PK in entities #43

Closed A-Sakhmina closed 3 months ago

A-Sakhmina commented 3 months ago

The sequence is required for update of entity.

Use JPA annotations

@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="LICENSE_SEQ")
@SequenceGenerator(name="LICENSE_SEQ",sequenceName="LICENSE_SEQ",allocationSize=1)