Status/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Benjamin Archibald / Ben Archibald (BenArchie)
Created: 12/09/2008
Components: ORM Support
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Major / Unknown
Locale/System: English / Mac 10 All
Vote Count: 1
Duplicate ID: CF-3037010
Problem:
When you have a mapping in your application.cfc and CF goes to build the hibernate files it throws a duplicate entity name error. An example of this error is:
Entity Name classMembership are same for two cfc nicenet_ica.model.core.classMembership and nicenet_ica.model.core.classMembership.
"nicenet_ica" is the root of this application. I have a mapping to "model". It seems to be looking down the throat of both the mapping AND the physical path and thinking that what is really one CFC looks like two different ones (/mapping/obj.cfc and /physical/obj.cfc).
Method:
<cfset this.ormenabled = "true">
<cfset this.ormsettings={dbCreate="dropcreate",datasource = "nicenet", dialect="Derby", savemapping="true"}>
<cfset this.mappings = structNew()>
<cfset this.mappings["/nicenet"] = getDirectoryFromPath(getCurrentTemplatePath())>
Result:
Entity Name classMembership are same for two cfc nicenet_ica.model.core.classMembership and nicenet_ica.model.core.classMembership.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037011
External Customer Info:
External Company:
External Customer Name: Ben Archibald
External Customer Email: 3AA72D3444AEF7EB9920157F
External Test Config: 12/09/2008
Attachments:
Comments: