Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNjE5ZmNhYmE3...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16599?atlOrigin=eyJpIjoiNjE5Zm...
) HHH-16599 (
https://hibernate.atlassian.net/browse/HHH-16599?atlOrigin=eyJpIjoiNjE5Zm...
) No way to make attributes of record annotated @Struct not-null (
https://hibernate.atlassian.net/browse/HHH-16599?atlOrigin=eyJpIjoiNjE5Zm...
)
Issue Type: Bug Assignee: Unassigned Created: 14/May/2023 14:12 PM Priority: Major
Reporter: Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
For this mapping:
@Embeddable
@Struct(name= "PersonName" )
record Name(@Basic(optional = false ) String firstName, String middleName,
@Basic(optional = false ) String lastName){}
The generated DDL is missing not-null constraints:
create type PersonName as (firstName varchar (255), middleName varchar (255), lastName
varchar (255))
(
https://hibernate.atlassian.net/browse/HHH-16599#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16599#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:e4eb869 )