[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-7100) ColumnAttributeSourceImpl.isNullable() returns true for collection key and basic element columns
Gail Badner (JIRA)
noreply at atlassian.com
Wed Feb 22 01:06:09 EST 2012
[ https://hibernate.onjira.com/browse/HHH-7100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gail Badner updated HHH-7100:
-----------------------------
Description:
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.
was:ColumnAttributeSourceImpl.isNullable() should return false for collection key column.
Summary: ColumnAttributeSourceImpl.isNullable() returns true for collection key and basic element columns (was: ColumnAttributeSourceImpl.isNullable() returns true for collection key)
> 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