When I ran my ormReload, I got:
property-ref [enterprise] not found on entity [office]
Wtf? I checked, and in my office entity, the enterprise property was
commented out. So of course it can't find the property - I removed it.
The question is - why is CF/ORM trying to use it? I can certainly see
a template that tried to run getEnterprise failing, but I'm not doing
that - I'm just calling an ormReload.
Any ideas?
--
===========================================================================
Raymond Camden, ColdFusion Jedi Master
Email : r...@camdenfamily.com
Blog : www.coldfusionjedi.com
AOL IM : cfjedimaster
Keep up to date with the community: http://www.coldfusionbloggers.org
cheers,
barneyb
> --
> You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
> To post to this group, send email to cf-or...@googlegroups.com.
> To unsubscribe from this group, send email to cf-orm-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
>
>
--
Barney Boisvert
bboi...@gmail.com
http://www.barneyb.com/
Try dropping all tables in DB manually, then call ormreload().
Henry
org.hibernate.MappingException: property-ref [enterprise] not found on
entity [office]
at org.hibernate.mapping.PersistentClass.getReferencedProperty(PersistentClass.java:362)
at org.hibernate.mapping.ManyToOne.createPropertyRefConstraints(ManyToOne.java:70)
at org.hibernate.cfg.HbmBinder$ManyToOneSecondPass.doSecondPass(HbmBinder.java:2733)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1163)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1319)
at coldfusion.orm.hibernate.HibernateConfiguration.buildSessionFactory(HibernateConfiguration.java:458)
at coldfusion.orm.hibernate.HibernateProvider.InitializeORMForApplication(HibernateProvider.java:188)
at coldfusion.orm.hibernate.HibernateProvider.beforeApplicationStart(HibernateProvider.java:85)
at coldfusion.filter.ApplicationFilter.fireBeforeAppStartEvent(ApplicationFilter.java:475)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:221)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
at coldfusion.CfmServlet.service(CfmServlet.java:200)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Caused by: org.hibernate.MappingException: property [enterprise] not
found on entity [office]
at org.hibernate.mapping.PersistentClass.getRecursiveProperty(PersistentClass.java:419)
at org.hibernate.mapping.PersistentClass.getReferencedProperty(PersistentClass.java:359)
... 33 more
--
Nope.
This is all I've got:
<cfset this.ormSettings = {
logsql="true",
cfclocation="model"
}>
cheers,
barneyb
> --
> You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
> To post to this group, send email to cf-or...@googlegroups.com.
> To unsubscribe from this group, send email to cf-orm-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
>
>
--
-sigh-
Sorry for the wild goose case all.
Of course, and maybe this is crazy talk, but, wouldn't it have been
nice if the error aid, "Hey, the file, x.cfc, is trying to reference
enterprise within office." I mean seriously, why not just say the
CFC/entity that is trying to use the bad relationship?
--
Obviously one property is wrong.
Which one? I have no idea.
Apologies if this it OT, although it relates to ORM on a type of CF, and I'm hoping it'll be of value to the community . . . I was wondering if anyone has got any cf9 ORM apps you'd like to try out on Railo? We're looking for some sample code that's working on CF9 so we can make sure we're covering all of the core use cases.
If you've got any interest, please drop me a line and we'll put together a beta testing group for anyone interested.
Best Wishes,
Peter
--
You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-or...@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#