Thanks for your speedy reply Matt. All the best for you ;-)

On 6/6/07, Matt Raible <[EMAIL PROTECTED]> wrote:

I haven't figured out a way to support @Embedded in AMP yet, and I
probably won't before 2.0 Final. The fix I made today basically
ignores @Embedded properties. I suggest you generate CRUD w/o
@Embedded and then add the fields to your JSP.

I'm more than happy to accept a patch for supporting @Embedded, but
for now I don't plan on supporting it for 2.0 Final - there's just not
enough hours in my life to do it all. ;-)

Matt

On 6/5/07, fadhli <[EMAIL PROTECTED]> wrote:
> Thanks for the reply Matt. But if I removed the @Embedded property, how
will
> it effect the hibernate3:hbm2ddl to my class? I use the Address class in
my
> Contact class.
>
>
> On 6/6/07, Matt Raible <[EMAIL PROTECTED]> wrote:
> >
> > Today I discovered this happens when you have a POJO with an @Embedded
> > property. You can either remove it (temporarily) or use the
> > 2.0-rc1-SNAPSHOT version of the plugin.
> >
> > Matt
> >
> > On 6/5/07, fadhli < [EMAIL PROTECTED]> wrote:
> > > Hello there,
> > >
> > > I'm using Appfuse 2.0-m5 with SpringMVC Basic.
> > >
> > > I've just used the appfuse:gen command for my entity Contact and ran
> into a
> > > runtime error. However, the files are succesfully generated in the
> > > target/appfuse folder.
> > >
> > > FYI, I am not using the appfuse:full-source but I've exported the
> appfuse
> > > core classes and added a r/ship between User and Contact.
> > >
> > > Here is the stack trace.  Have anyone encounter this before?
> > >
> > > Expression field.value.typeName is undefined on line 28, column 10
in
> > > appfuse/web/spring/list-view.ftl.
> > > The problematic instruction:
> > > ----------
> > > ==> if-else  [on line 28, column 5 in appfuse/web/spring/list-
view.ftl]
> > > ----------
> > >
> > > Java backtrace for programmers:
> > > ----------
> > > freemarker.core.InvalidReferenceException : Expression
> > > field.value.typeName is undefined on line 28, column 10 in appfuse
> > > /web/spring/list-view.ftl.
> > >         at
> > >
> freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
> > >         at
> > >
> freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java
:121)
> > >         at freemarker.core.IfBlock.accept(IfBlock.java:80)
> > >          at
> > > freemarker.core.Environment.visit
> (Environment.java:196)
> > >         at freemarker.core.IfBlock.accept(IfBlock.java:82)
> > >         at
> > > freemarker.core.Environment.visit(Environment.java:196)
> > >         at
> freemarker.core.IteratorBlock$Context.runLoop
> > > (IteratorBlock.java:160)
> > >         at
> > > freemarker.core.Environment.visit(Environment.java:351)
> > >         at
> > >
> freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
> > >         at
> > > freemarker.core.Environment.visit(Environment.java
> :196)
> > >         at
> > >
> freemarker.core.MixedContent.accept(MixedContent.java:92)
> > >         at
> > > freemarker.core.Environment.visit(Environment.java
> :196)
> > >         at
> > >
> freemarker.core.Environment.process(Environment.java:176)
> > >          at
> > > freemarker.template.Template.process(Template.java:231)
> > >         at
> > > org.hibernate.tool.hbm2x.TemplateHelper.processTemplate
> (TemplateHelper.java:247)
> > >         at
> > >
> org.hibernate.tool.hbm2x.TemplateProducer.produceToString
> > > (TemplateProducer.java:67)
> > >         at
> > > org.hibernate.tool.hbm2x.TemplateProducer.produce
> (TemplateProducer.java:28)
> > >         at
> > >
> org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java
:97)
> > >         at
> > >
> org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java
> :146)
> > >         at
> > >
> org.appfuse.tool.AppFuseExporter$1.exportPOJO(AppFuseExporter.java:202)
> > >         at
> > >
> org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass
> > > (GenericExporter.java :135)
> > >         at
> > >
> org.hibernate.tool.hbm2x.GenericExporter$2.process(GenericExporter.java
:41)
> > >         at
> > >
> org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java
:126)
> > >         at
> org.hibernate.tool.hbm2x.AbstractExporter.start
> > > (AbstractExporter.java:95)
> > >         at
> > >
> org.appfuse.tool.AppFuseExporter.generateWeb(AppFuseExporter.java:131)
> > >         at
> > > org.appfuse.tool.AppFuseExporter.doStart
> (AppFuseExporter.java:50)
> > >         at
> org.hibernate.tool.hbm2x.AbstractExporter.start
> > > (AbstractExporter.java:95)
> > >         at
> > >
> org.appfuse.mojo.HibernateExporterMojo.doExecute(
HibernateExporterMojo.java
> :244)
> > >         at
> > >
> org.appfuse.mojo.HibernateExporterMojo.execute(
HibernateExporterMojo.java:154)
> > >         at
> > >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java
> :443)
> > >         at
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
> > >         at
> > >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal
> > > (DefaultLifecycleExecutor.java:493)
> > >         at
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:463)
> > >         at
> > >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> > > (DefaultLifecycleExecutor.jav
> > > a:311)
> > >         at
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
> > >         at
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> > > (DefaultLifecycleExecutor.java:143)
> > >         at
> > >
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> > >         at
> > >
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > >         at org.apache.maven.cli.MavenCli.main
> > > (MavenCli.java:272)
> > >         at
> > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > >         at
> > > sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> > >         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > (DelegatingMethodAccessorImpl.java:25)
> > >         at java.lang.reflect.Method.invoke(Method.java:597)
> > >         at
> > >
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > >         at org.codehaus.classworlds.Launcher.launch
> > > (Launcher.java:255)
> > >         at
> > > org.codehaus.classworlds.Launcher.mainWithExitCode
> (Launcher.java:430)
> > >         at
> > >
> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [ERROR] FATAL ERROR
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Error while processing template appfuse/web/spring/list-
view.ftl
> > > Expression field.value.typeName is undefined on line 28, column 10
in
> > > appfuse/web/spring/list- view.ftl.
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Trace
> > > org.hibernate.tool.hbm2x.ExporterException: Error while
> > > processing template appfuse/web/spring/list-view.ftl
> > >          at
> > >
> org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(
TemplateHelper.java:253)
> > >         at
> > >
> org.hibernate.tool.hbm2x.TemplateProducer.produceToString
> (TemplateProducer.java:67)
> > >         at
> > > org.hibernate.tool.hbm2x.TemplateProducer.produce
> > > (TemplateProducer.java:28)
> > >         at
> > >
> org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java
> :97)
> > >         at
> > >
> org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java
:146)
> > >         at
> > >
> org.appfuse.tool.AppFuseExporter$1.exportPOJO(AppFuseExporter.java:202)
> > >         at
> > >
> org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(
GenericExporter.java:135)
> > >         at
> > > org.hibernate.tool.hbm2x.GenericExporter$2.process
> > > (GenericExporter.java:41)
> > >         at
> > >
> org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java
:126)
> > >         at
> > >
> org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java
:95)
> > >         at org.appfuse.tool.AppFuseExporter.generateWeb
> > > (AppFuseExporter.java:131)
> > >         at
> > >
> org.appfuse.tool.AppFuseExporter.doStart(AppFuseExporter.java:50)
> > >         at
> > >
> org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java
> :95)
> > >         at
> org.appfuse.mojo.HibernateExporterMojo.doExecute
> > > (HibernateExporterMojo.java:244)
> > >         at
> > >
> org.appfuse.mojo.HibernateExporterMojo.execute(
HibernateExporterMojo.java:154)
> > >         at
> > >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java
> > > :443)
> > >         at
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java
> :539)
> > >         at
> > >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java
> > > :493)
> > >         at
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (DefaultLifecycleExecutor.java:463)
> > >         at
> > >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.jav
> > > a:311)
> > >         at
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> (DefaultLifecycleExecutor.java:278)
> > >         at
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java
> > > :143)
> > >         at
> > > org.apache.maven.DefaultMaven.doExecute
> (DefaultMaven.java:334)
> > >         at
> > >
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > >         at
> > > org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> > >         at
> > > sun.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)
> > >         at
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
> > >         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > (DelegatingMethodAccessorImpl.java :25)
> > >         at java.lang.reflect.Method.invoke(Method.java:597)
> > >         at
> > >
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > >         at org.codehaus.classworlds.Launcher.launch
> > > (Launcher.java:255)
> > >         at
> > >
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > >         at
> > >
> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > Caused by: freemarker.core.InvalidReferenceException :
> > > Expression field.value.typeName is undefined on line 28, column 10
> > >  in appfuse/web/spring/list-view.ftl.
> > >         at
> > > freemarker.core.TemplateObject.assertNonNull
> (TemplateObject.java:124)
> > >         at freemarker.core.ComparisonExpression.isTrue
> > > (ComparisonExpression.java:121)
> > >         at freemarker.core.IfBlock.accept(IfBlock.java:80)
> > >         at
> > > freemarker.core.Environment.visit(Environment.java:196)
> > >         at freemarker.core.IfBlock.accept(IfBlock.java :82)
> > >         at
> > > freemarker.core.Environment.visit(Environment.java:196)
> > >         at
> > >
> freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
> > >         at
> > > freemarker.core.Environment.visit(Environment.java
> :351)
> > >         at
> > > freemarker.core.IteratorBlock.accept
> (IteratorBlock.java:95)
> > >         at
> > > freemarker.core.Environment.visit(Environment.java:196)
> > >         at
> > >
> freemarker.core.MixedContent.accept(MixedContent.java:92)
> > >         at
> > > freemarker.core.Environment.visit
> (Environment.java:196)
> > >         at
> > >
> freemarker.core.Environment.process(Environment.java:176)
> > >         at
> > > freemarker.template.Template.process(Template.java:231)
> > >         at
> > > org.hibernate.tool.hbm2x.TemplateHelper.processTemplate
> (TemplateHelper.java:247)
> > >         ... 32 more
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Total time: 1 minute 8 seconds
> > > [INFO] Finished at: Wed Jun 06 10:42:32 SGT 2007
> > > [INFO] Final Memory: 18M/38M
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > --
> > > /fadhli
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> /fadhli


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
/fadhli

Reply via email to