[
https://issues.jboss.org/browse/JBIDE-22283?page=com.atlassian.jira.plugi...
]
Koen Aers commented on JBIDE-22283:
-----------------------------------
[~dlmiles] Would it be possible to provide me with a test setup to reproduce this issue?
Or in any case describe the steps to reproduce along with any relevant artifacts (i.e.
*.hbm.xml and/or *.reveng.xml files)?
reveng *.java emitter does not escape java keyword 'return'
as variable name
----------------------------------------------------------------------------
Key: JBIDE-22283
URL:
https://issues.jboss.org/browse/JBIDE-22283
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: hibernate
Affects Versions: 4.3.x
Environment: Eclipse Mars
Reporter: Darryl Miles
Assignee: Koen Aers
Fix For: 4.4.0.Alpha3
reveng *.java emitter does not escape java keyword 'return' as variable name
<table name="oc_return_history">
<foreign-key constraint-name="FK_oc_return_history__return_id"
foreign-table="oc_return">
<column-ref local-column="return_id"
foreign-column="return_id"/>
<!-- this breaks the generator trying to name local variable as a java keyword
-->
<many-to-one property="return"/>
</foreign-key>
</table>
The expected output would be:
private Return _return;
but actual output is:
private Return return;
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)