[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1182) hbm2hbmxml does not escape comments when creating hbm.xml files
lajcik (JIRA)
noreply at atlassian.com
Tue Apr 19 06:01:59 EDT 2011
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: 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