[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-4050) Abstract attribute is never exported in persistent class.
Dmitry Geraskov (JIRA)
jira-events at lists.jboss.org
Thu Mar 19 09:31:22 EDT 2009
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
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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list