Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Coldfusion ORM issue mapping not found when server restarts

$
0
0

Windows 2012, CF11,  IIS

 

First, I have the following in my application.cfc:

    this.ormenabled=true;

    this.ormsettings.dbcreate = "update";

    this.ormsettings.flushAtRequestEnd = false;

    this.ormsettings.cfclocation=expandpath('/model'); // I've also tried "C:\full\path\model"

 

My models are in my /model folder.

 

My error:

Error while executing the Hibernate query.org.hibernate.hql.internal.ast.QuerySyntaxException:

List is not mapped [  from List  where listtypeid = 2  and user.userid = ? ] The specific sequence of files included or processed is:

C:\inetpub\vhosts\xxxx\xxxx\sms\index.cfm, line: 7 "

 

SMS/index.cfm:

<Cfquery name="lists" dbtype="hql">

from List

where listtypeid = 2

and user.userid = <cfqueryparam cfsqltype="cf_sql_integer" value="#session.userid#">

</Cfquery>

 

I have a few calls prior to the cfquery dbtype=hql using entityloadbypk() such as

<cfset user=entityloadbypk("User",session.userid)>

 

that work fine.

 

The wierd thing is to fix it... if I go to my models/List.cfc file... add a blank anywhere in the file and save it, and then do an ORMReload(), it comes up with no problem.

 

It only happens after the CF service gets restarted.

 

Any suggestions?


Viewing all articles
Browse latest Browse all 5794

Trending Articles