To use a SERIAL field in a PostgreSQL database, define the following in your entity class:
@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
The field created is of type SERIAL, and the implicit native sequence associated with this field is of the form FullyQualifiedName_IdFieldColumnName_SEQ.