We're updating the issue view to help you get more done. 

Escape entity fields name when required

Description

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

Environment

Hibernate Core 3.6.2.Final Hibernate Envers 3.6.2.Final Postgesql v8.3.14

Status

Assignee

AdamA

Reporter

stephan

Requires Release Note

Affirmative

Components

Fix versions

Affects versions

3.6.2

Priority

Blocker