[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6069) Escape entity fields name when required

Lukasz Antoniak (JIRA) noreply at atlassian.com
Thu Apr 14 18:22:59 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42040#action_42040 ] 

Lukasz Antoniak commented on HHH-6069:
--------------------------------------

Pull request submitted: https://github.com/hibernate/hibernate-core/pull/66

> Escape entity fields name when required
> ---------------------------------------
>
>                 Key: HHH-6069
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6069
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: envers
>    Affects Versions: 3.6.2
>         Environment: Hibernate Core 3.6.2.Final
> Hibernate Envers 3.6.2.Final
> Postgesql v8.3.14
>            Reporter: stephan
>            Priority: Blocker
>
>   I have a class defined like this :
> @Entity
> @Audited
> public class foo {
>      @Column(name="`SERIAL#`")
>      private String serial_;
>      ...
> }
> Hibernate generates sucessfully an insert statement :
> insert into foo("SERIAL#") values(?);
> whereas Hibernate Envers failed by generating :
> insert into foo_aud(REVTYPE, SERIAL#, REV) values(?, ?, ?); -- Note the absence of double quotes

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