[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7249) Hibernate Ant Code Generation -> ant-tasks-description.xml is not included
Vitali Yemialyanchyk (JIRA)
jira-events at lists.jboss.org
Tue Oct 5 11:30:39 EDT 2010
[ https://jira.jboss.org/browse/JBIDE-7249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555337#action_12555337 ]
Vitali Yemialyanchyk commented on JBIDE-7249:
---------------------------------------------
>> I still have NPE when no properties are set for HQL Exporter
that is correct.
steps to check and close the issue:
1) ...\jbdevstudio_beta1\studio\eclipse\plugins\org.hibernate.eclipse.console_3.4.0.v201010042048R-H26-Beta1\ant-tasks-description.xml
file should exist
2) Hibernate CodeGen Configuration with selected "HQL Query Exporter" with settings:
File name [outputFileName]: queryOutRes.txt
Query [query_string]: from org.gen.Customers
Output directory [outputdir]: /hibtest2/ant
Ant code gen should generate this correct script:
<query destdir="/hibtest2/ant" destfile="queryOutRes.txt">
<hql>from org.gen.Customers</hql>
<property key="ejb3" value="false"/>
<property key="jdk5" value="false"/>
</query>
NOT this:
<query>
<property key="ejb3" value="false"/>
<property key="jdk5" value="false"/>
<property key="outputFileName" value="queryOutRes.txt"/>
<property key="outputdir" value="/hibtest2/ant"/>
<property key="query_string" value="from org.gen.Customers"/>
</query>
> Hibernate Ant Code Generation -> ant-tasks-description.xml is not included
> --------------------------------------------------------------------------
>
> Key: JBIDE-7249
> URL: https://jira.jboss.org/browse/JBIDE-7249
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Hibernate
> Affects Versions: 3.2.0.Beta1
> Reporter: Vitali Yemialyanchyk
> Assignee: Vitali Yemialyanchyk
> Priority: Blocker
> Fix For: 3.2.0.Beta1, 3.2.0.Beta2
>
>
> in this case Ant codegen will not work correctly... no exceptions... JBIDE-6703 - was initial issue to find this,
> to check it -> for Query exporter -> Ant code generation should generate this:
> <query destdir="/hibtest2/ant" destfile="queryOutRes.txt">
> <hql>from org.gen.Customers</hql>
> <property key="ejb3" value="false"/>
> <property key="jdk5" value="false"/>
> </query>
> not this:
> <query>
> <property key="ejb3" value="false"/>
> <property key="jdk5" value="false"/>
> <property key="outputFileName" value="queryOutRes.txt"/>
> <property key="outputdir" value="/hibtest2/ant"/>
> <property key="query_string" value="from org.gen.Customers"/>
> </query>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list