[hibernate-issues] [Hibernate-JIRA] Created: (HHH-7235) Support null NaturalId values in loadEntityIdByNaturalId query

Guenther Demetz (JIRA) noreply at atlassian.com
Tue Apr 10 03:20:48 EDT 2012


Support null NaturalId values in loadEntityIdByNaturalId query
--------------------------------------------------------------

                 Key: HHH-7235
                 URL: https://hibernate.onjira.com/browse/HHH-7235
             Project: Hibernate ORM
          Issue Type: Improvement
          Components: core
    Affects Versions: 4.1.2, 4.1.1, 4.1.0
            Reporter: Guenther Demetz


As it is allowed to persist and commit null naturalId values (for example null String values),
it would also be nice to can sucessful lookup for those values.
Currently the where-clause of the lookup-query does not consider the eventuality of null values, which in sql require an extra handling (using 'is' keyword instead of '=' sign).

The needed code change is simple, see pull request.

--
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