]
Max Rydahl Andersen resolved JBIDE-4050.
----------------------------------------
Resolution: Done
done
Abstract attribute is never exported in persistent class.
---------------------------------------------------------
Key: JBIDE-4050
URL:
https://jira.jboss.org/jira/browse/JBIDE-4050
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: FreeMarker, Hibernate
Affects Versions: 3.0.0.GA
Reporter: Dmitry Geraskov
Assignee: Dmitry Geraskov
Fix For: 3.1.0.M1
Attachments: patch.txt, test.txt
We use the following code to export the attrubute:
<#if clazz.abstract?exists && clazz.abstract>
abstract="true"
</#if>
but "abstract" attribute held into PersistentClass.isAbstract. I guess
developers of freemarker check only get+Fieldname and is+Fieldname, like java convension
says.
So, the working code is:
<#if clazz.isAbstract()?exists && clazz.isAbstract()>
abstract="true"
</#if>
Patch and unit test will be attached.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: