[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4012) Seam Generate Entities doesn't work in Seam DVD Example Project.

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Thu Apr 16 09:44:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-4012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12462579#action_12462579 ] 

Dmitry Geraskov commented on JBIDE-4012:
----------------------------------------

Here exporter expects that  layout folder exists. Here is the code from SemaGenerateEntitiesWizard line 320.

//				<hbmtemplate filepattern="menu.xhtml"
//	                template="view/layout/menu.xhtml.ftl" 
//		             destdir="${project.home}/view/layout"
//                     foreach="entity"/>

				hbmtemplateAttributes = new HashMap<String, String>();
				hbmtemplateAttributes.put("file_pattern", "menu.xhtml"); //$NON-NLS-1$ //$NON-NLS-2$
				hbmtemplateAttributes.put("template_name", "view/layout/menu.xhtml.ftl"); //$NON-NLS-1$ //$NON-NLS-2$
				hbmtemplateAttributes.put("outputdir",seamProjectsSet.getViewsFolder().getFullPath().toString()+"/layout"); 


The code was commited by:
dgolovin 3806 26.09.2007 12:43
http://jira.jboss.com/jira/browse/JBIDE-769 Domain and Generic exporters added based on seam-ge generate-entities ant atrget http://jira.jboss.com/jira/browse/JBIDE-846 src/action src/model added for war config


I think we need to check here that the 'layout' folder exists here, but I am not shure. May be this exporter have such internal logic. It is a question to you and Dinis... may be to anybody else.


> Seam Generate Entities doesn't work in Seam DVD Example Project.
> ----------------------------------------------------------------
>
>                 Key: JBIDE-4012
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4012
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate, Seam
>    Affects Versions: 3.0.0.GA
>            Reporter: Anton Klimkovich
>            Assignee: Dmitry Geraskov
>             Fix For: 3.1.0.M2
>
>         Attachments: exception.txt
>
>
> EXECUTE: Import Seam DVD Example Project into workspace
> EXECUTE: select project-> New -> Seam Generate Entities
> EXECUTE: Refresh Database schema and include some table to Table Filter
> EXECUTE: Press Finish button
> FAILURE:   org.hibernate.console.HibernateConsoleRuntimeException: Output directory '/dvdstore/WebContent/layout' in Generic Exporter (<hbmtemplate>) does not exist.
> Entities will be generated successfully If you create Output directory '/dvdstore/WebContent/layout in the project.

-- 
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