]
lajcik commented on HBX-1182:
-----------------------------
Obviously it should replace < with &lt; :)
hbm2hbmxml does not escape comments when creating hbm.xml files
---------------------------------------------------------------
Key: HBX-1182
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1182
Project: Hibernate Tools
Issue Type: Bug
Environment: Hibernate tools 3.2.3.GA. Oracle 11g
Reporter: lajcik
Priority: Minor
When given a table like this (simplified example):
CREATE
TABLE "MYSCHEMA"."MYTABLE"
(
"MYID" NUMBER NOT NULL ENABLE,
"CTYPE" VARCHAR2(50 BYTE),
);
COMMENT ON COLUMN "MYSCHEMA"."MYTABLE"."CTYPE"
IS
'Something something enumeration: <home_phone, work_phone, cell_phone, fax,
email>';
hbm2hbmxml will generate the following mapping file (excerpt):
<property
name="ctype"
type="string"
>
<column name="CTYPE" length="50" >
<comment>Something something enumeration: <home_phone, work_phone, cell_phone,
fax, email>
</comment>
</column> </property>
This file is not valid xml and will cause errors when loaded by hibernate.
hbm2hbmxml should escape comment text, replacing < with < etc
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: