[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-7100) ColumnAttributeSourceImpl.isNullable() returns true for collection key and basic element columns
Gail Badner (JIRA)
noreply at atlassian.com
Wed Feb 22 01:08:09 EST 2012
[ https://hibernate.onjira.com/browse/HHH-7100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45579#comment-45579 ]
Gail Badner commented on HHH-7100:
----------------------------------
This causes problems when collection table primary and foreign keys are created.
> ColumnAttributeSourceImpl.isNullable() returns true for collection key and basic element columns
> ------------------------------------------------------------------------------------------------
>
> Key: HHH-7100
> URL: https://hibernate.onjira.com/browse/HHH-7100
> Project: Hibernate ORM
> Issue Type: Bug
> Components: metamodel
> Reporter: Gail Badner
> Fix For: 5.0.0
>
>
> Not absolutely sure about this, but I think ColumnAttributeSourceImpl.isNullable() should return:
> - TruthValue.UNKNOWN for collection key column.
> - TruthValue.UNKNOWN for a basic collection element column, unless explicitly specified in the mapping
> If ColumnAttributeSourceImpl.isNullable() returns TruthValue.UNKNOWN, then ColumnBindingDefaults.areValuesNullableByDefault() can be used to provide the proper default.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list