Hi,
I’m playing with the new 3.5 ActiveEntity but CF is failing to find the entity when I extend it with ActiveEntity. For example with …
component entityname=“Faculty” table=“SITSFACULTIES” persistent=“true” {
property name=“ID” column=“FACCODE” fieldtype=“id” generator=“assigned” setter=“false” ;
property name=“shortName” column=“FACSNAM” ormtype=“string” notnull=“true” setter=“false”;
property name=“name” column=“FACNAME” ormtype=“string” notnull=“true” setter=“false”;
property name=“isUsed” column=“FACIUSE” ormtype=“string” notnull=“true” setter=“false”;
private void function init() {
super.init(useQueryCaching=true);
variables.ID = “”;
variables.shortName = “”;
variables.name = “”;
variables.isUsed = “Y”;
}
}
…the call…
objFaculty = entityNew(“Faculty”);
…works fine but if I define the entity like this…
component entityname=“Faculty” table=“SITSFACULTIES” extends=“coldbox.system.orm.hibernate.ActiveEntity” persistent=“true” {
property name=“ID” column=“FACCODE” fieldtype=“id” generator=“assigned” setter=“false” ;
property name=“shortName” column=“FACSNAM” ormtype=“string” notnull=“true” setter=“false”;
property name=“name” column=“FACNAME” ormtype=“string” notnull=“true” setter=“false”;
property name=“isUsed” column=“FACIUSE” ormtype=“string” notnull=“true” setter=“false”;
private void function init() {
super.init(useQueryCaching=true);
variables.ID = “”;
variables.shortName = “”;
variables.name = “”;
variables.isUsed = “Y”;
}
}
…I get…
No entity (persitent component) with name [Faculty] found, available entities are []
component are searched in the following directories [C:\website\icdms\webroot\model\entity]
…when plainly the entity does exist in the location specified by this.ormSettings.cfclocation= “/model/entity” in Application.cfc
Thoughts or suggestions welcome.
Environment: Railo Express 3.3.1
Richard