At my model layer, I've got various subfolders to help organize all my
CFCs. If a CFC in the user folder has a relationship to a CFC in the
page folder, than I'l have a link like so:
cfc="picard.model.page.page"
This works fine - but it bugs me. I added a new mapping called model
that points to my model folder. I added a new CFC with the following
property:
property name="user" fieldtype="many-to-one" cfc="model.user.user"
fkcolumn="useridfk";
But when run, I get:
An association from the table comment refers to an unmapped class:
Changing cfc to picard.model.user.user fixes the issue, but I'd really
rather use just the model mapping.
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
property name="file" fieldtype="one-to-one" cfc="model.file.file"
fkcolumn="fileidfk";
and this works just fine. So the model mapping must be ok.
The way to fix that will be to change the CFC files so that its classes are re-generated and the metadata is reloaded.
Rupesh.
Association references unmapped class:
No detail on _where_ the association is or _what_ it is trying to use.
This error is about as useless as it can get.
I turned on the config setting to save the hbmxml files. I still see
picard.model.x in there even though it is nowhere to be found in the
CFC. So I picked one CFC, grouptype, and added a new property, just
for the heck of it. On reload, the hbmxml file was NOT refreshed with
the new prop and still had the incorrect path in it.
Unfortunately - the xml contains the new prop, but NOT the right pathing.
--
Was this bug reported? This is so frustrating. I went through the same
frustrating steps as Ray. The irony is I did remembered seeing this
thread, but still kept trying (argh...). I have 2 mapping in my
application.cfc as well (appRoot, com). I would like to use
com.model.x.y for my entities and I need appRoot mapping for some
other things in my app.
It seems like there is no _set_ order in which entities are found.
Some time they are evaluated to com and some time to appRoot. I even
tired using cfclocation attribute (=com), but that didn't made any
difference.
After wasting too many hours, I'm giving up too and going to use just
one mapping (appRoot). I do hope that this gets fixed soon so we can
use multiple mapping in our application!!
Sumit
On Nov 2, 6:00 am, Rupesh Kumar <ruku...@adobe.com> wrote:
> Ray,
> Not sure what is going on. AFAIK, we find the best match for finding the cfc fully qualified name and therefore in this case, the cfc name should evaluate to "model.page.imagepanel". Could you please log a bug for this so that we can investigate and track it.
>
> Rupesh
>
>
>
> -----Original Message-----
> From: cf-or...@googlegroups.com [mailto:cf-or...@googlegroups.com] On Behalf Of Raymond Camden
> Sent: Sunday, November 01, 2009 7:53 PM
> To: cf-or...@googlegroups.com
> Subject: Re: unmapped class error
>
> I didn't use both though. That error came from CF, not my code.
> Nowhere in my CFCs did anything createpicard.x or map topicard.x. CF
> "hung on" to the definition, even after I restarted, cleared cache,
> etc.
>
Henry
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.--
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.
I'm running in to the same situation as Sumit. I'm building a new app
to be deployed on a server instance with a pile of legacy spaghetti
code that uses a CF mapping to the site root. Unfortunately, even
with that same mapping reassigned to a different path in my
Application.cfc (and cfclocation defined for my app) I am getting an
"assocation references unmapped class" on the first load of the app.
3 of my 7 persistent CFCs are somehow acquiring the wrong fully
qualified name (per the hbmxml files).
Hitting refresh allows the app to startup and run properly (I'm
assuming that's because Hibernate now knows where they are there's no
confusion over building the relationships internally). I would,
however, like to avoid the initial startup blowup by resolving this
properly.
Bugworthy or is anyone interested in trying to hammer it out here?
Steve
can you log a bug for this and add the repro case for the same?
Could you also send the repro case to me directly at rukumar at adobe dot com?
Rupesh
--
You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cf-orm-dev/-/00WVF7oVvrwJ.
Just want to add that on CF10 there is still the same issue. Once I switched to a single mapping everything worked.
On Saturday, October 31, 2009 5:20:10 AM UTC+9, Raymond Camden wrote:I'm working on a project called Picard. In my app.cfc I created a
mapping named picard that points to my application root. Normally I
call this mapping root or app, but for whatever reason, I didn't do
that this time.At my model layer, I've got various subfolders to help organize all my
CFCs. If a CFC in the user folder has a relationship to a CFC in the
page folder, than I'l have a link like so:cfc="picard.model.page.page"
This works fine - but it bugs me. I added a new mapping called model
that points to my model folder. I added a new CFC with the following
property:property name="user" fieldtype="many-to-one" cfc="model.user.user"
fkcolumn="useridfk";But when run, I get:
An association from the table comment refers to an unmapped class:
Changing cfc to picard.model.user.user fixes the issue, but I'd really
rather use just the model mapping.Any ideas?
There is nothing odd or unique about it in the whole object model - not a duplicate name or anything.
I hope that debugging errors like this is made a little more accessible in CF11!
--
You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cf-orm-dev+...@googlegroups.com.
To post to this group, send email to cf-or...@googlegroups.com.
Visit this group at http://groups.google.com/group/cf-orm-dev.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cf-orm-dev+...@googlegroups.com.
To post to this group, send email to cf-or...@googlegroups.com.
Visit this group at http://groups.google.com/group/cf-orm-dev.
For more options, visit https://groups.google.com/groups/opt_out.
Not sure if this is part of the problem, but I'd always use a full package path for the CFC attributes. e.g. cfc="path.to.Category".