Right now in development I put a mapping in application.cfc of the project root for
this.mappings["/hellocoldbox"] = COLDBOX_APP_ROOT_PATH;
this.mappings[’/solitary’] = COLDBOX_APP_ROOT_PATH & “/modules/solitary”;
Is there anyway to get around this? by default we should have a mapping to the project but I have no idea how to use it in an entity. I am not sure if there is anything going on that injects anything into the Transient object …
component persistent=“true” extends=“solitary.model.BaseEntity” table=“users”{
in my domain objects I have to extend a base entity
component persistent=“true” extends=“solitary.model.BaseEntity” table=“users”{
}
the only way to extend is to path it out correctly using the mapping I created ^
this.mappings[’/solitary’] = COLDBOX_APP_ROOT_PATH & “/modules/solitary”;
in a transient object like this do i have access to anything that would allow me avoid creating this mapping?
component persistent=“true” extends="#coldbox_app_mapping#.modules.solitary.model.BaseEntity" table=“users”{
}
AHH, unfortuantely you cannot use dynamic content for inheritance or implementation that’s a CF limitation.
I think that you have no choice but to add a mapping on the Application.cfc
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com