[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1109) ejb3 annotations formula - wrong string literals
Arturo Frappé (JIRA)
noreply at atlassian.com
Tue Feb 17 12:07:38 EST 2009
ejb3 annotations formula - wrong string literals
------------------------------------------------
Key: HBX-1109
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1109
Project: Hibernate Tools
Issue Type: Bug
Components: hbm2java
Environment: Hibernate Core 3.2.6.ga
Hibernate Tools 3.2.3.GA
SQL Server 2000
Reporter: Arturo Frappé
Priority: Minor
hbm2java generates wrong ejb3 code adding extra CR when mapping a formula inside a CDATA
Mapping:
<property name="dosis" type="string">
<meta attribute="field-description">Dosis</meta>
<formula>
<![CDATA[ (SELECT c.tx_dosis FROM DOSIS c WHERE c.id_dosis = id_dosis)]]>
</formula>
</property>
Generated code:
@Formula(value="
(SELECT c.tx_dosis FROM DOSIS c WHERE c.id_dosis = id_dosis)
")
public String getDosis() {
return this.dosis;
}
--
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