@Basic override for embeddable fails though no warning is raised during config

Description

A property of an @Embeddable is defined with @Basic(optional = false)
Attempting to override the non-optional column where the embeddable is @Embedded in an entity using @AttributeOverride(... column = @Column(nullable = true))

No warning is logged nor is any exception raised until an attempt it made to persist an entity with a null value for the relevant column at which point the following exception is raised (see attached testcase):

If @Basic cannot be overridden in this manner, but there should be a warning or exception raised.

Environment

None

Assignee

Gail Badner

Reporter

Stephen Fikes

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure