[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-5718) AuditProperty.isNotNull creates an incorrect condition in the MySQL dialect

Lukasz Antoniak (JIRA) noreply at atlassian.com
Tue May 24 17:09:25 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Antoniak resolved HHH-5718.
----------------------------------

       Resolution: Duplicate
    Fix Version/s: 3.6.4
                   4.0.0.Alpha3

Duplicates: HHH-4787.

> AuditProperty.isNotNull creates an incorrect condition in the MySQL dialect
> ---------------------------------------------------------------------------
>
>                 Key: HHH-5718
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5718
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: envers
>    Affects Versions: 3.5.6
>         Environment: 3.5.6-FINAL, MySQL 5.0.27, for apple-darwin9.3.0 
>            Reporter: Anthony Bishopric
>            Assignee: Lukasz Antoniak
>             Fix For: 4.0.0.Alpha3, 3.6.4
>
>         Attachments: SampleEntity.java, SampleEntityDAO.java
>
>
> When using AuditProperty.isNotNull(), envers will generate a sql condition "property<>null". This condition can never evaluate to true (it must use MySQL's "is not null" convention)
> Attached are two example classes which should replicate the issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list