Community
Participate
Working Groups
Build Identifier: 20110916-0149 Autocompletion of a JPQL query in orm.xml that contains tabs or enters causes those tabs or enters to be replaced by \t resp. \n. E.g. consider the following entry in orm.xml: <named-query name="TestEntity.getByID"> <query> SELECT _testEntity FROM TestEntity _testEntity WHERE _testEntity.id = :ID </query> </named-query> After removing the d in _testEntity and using ctrl+space to auto complete it back to "id", the editor will change the query into: <named-query name="TestEntity.getByIDD"> <query> \n\t\t\tSELECT \n\t\t\t\t_testEntity \n\t\t\tFROM \n\t\t\t\tTestEntity _testEntity\n\t\t\tWHERE \n\t\t\t\t_testEntity.id = :ID\n\t\t</query> </named-query> Just typing the query with embedded tabs and enters and then saving it does not trigger this replacement. Reproducible: Always
Created attachment 204711 [details] Remove escaping escaped characters when JPQL queries are in orm.xml
Checked in the fix
Verified in Build M-3.3.2-20111107175211 Verified when you remove the d and use content assist to add it back the \n, \t characters do not appear in the orm.xml editor. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.2