Hi Guys,
I have a problem with injection/ORM.
in my WireBox.cfc I have mapped the following:
map(“SupportMatch”).to(“model.ormEntities.SupportMatch”);
model.ormEntities.SupportMatch contains:
component persistent=“true” table=“SupportMatches”{
// Primary Key
property name=“SupportMatchID” fieldtype=“id” column=“SupportMatchID” generator=“identity”;
// Properties
property name=“SupportMatchConfirmed” ormtype=“boolean”;
property name=“SupportMatchDateConfirmed” ormtype=“timestamp”;
property name=“SupportMatchProcessed” ormtype=“boolean”;
property name=“SupportMatchDateProcessed” ormtype=“timestamp”;
property name=“UserID” ormtype=“integer”;
// Relations
property name=“Terminal” fieldtype=“one-to-one” cfc=“MerchantMatch” fkcolumn=“SupportQueueMerchantMatchID”;
property name=“Campaign” fieldtype=“one-to-one” cfc=“MerchantMatchCampaign” fkcolumn=“SupportQueueMerchantMatchCampaignID”;
// Constructor
function init(){
return this;
}
}
in the root of my model folder i have a file ORMEventHandler.cfc with content:
component extends=“coldbox.system.orm.hibernate.EventHandler”{
}
In a service layer component I have:
property name=“supportMatchService” inject=“entityService:SupportMatch”;
When calling a method in the service layer that calls:
var supportMatch = supportMatchService.new();
I get error:
Application Execution Exception
Error Type: Application : [N/A]
Error Messages: Mapping for component model.ormEntities.SupportMatch not found.
Either the mapping for this component is missing or the application must be restarted to generate the mapping.
This used to work before upgrading to 3.5 beta (it worked in 3.5 develop too)
Any idea’s?