Wrong DDL for @JoinColumn to serial id

Description

Referencing serial id produces always not null column with default value.

Result DDL for column author in books table:

Environment

5.1.0.Final + Postgresql 9.4

Assignee

Gail Badner

Reporter

Nikolay Firov

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure