tracker issue : CF-4085376

select a category, or use search below
(searches all categories and all time range)
Title:

CF generates different .hbmxml files at different times.

| View in Tracker

Status/Resolution/Reason: To Fix//NeedMoreInfo

Reporter/Name(from Bugbase): Mingo Hagen / Mingo Hagen (Mingo Hagen)

Created: 11/09/2015

Components: ORM Support

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Unknown

Locale/System: ALL / Platforms All

Vote Count: 0

Problem Description:

As mentioned in bug 4024472: CF generates different .hbmxml files at different times.

Steps to Reproduce:

1. Set this.ORMSettings.saveMapping to true
2. remove previously generated .hbmxml files
3. clear the template cache
4. navigate to the app (causing a ORMReload())

This will generate the (in my opinion) incorrect .hbmxml files which results in the "Repeated column in mapping for entity" error.

Now remove the dog.hbmxml file and reload the application. 

Actual Result:

This will generate a different .hbmxml file, still wrong (namely a <class> file instead of a <subclass> file), but not resulting in an error because suddenly dog is no longer inheriting from animal...

Expected Result:

Correct hbmlxml files. Always.

Any Workarounds:

No.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4085376

Reason:	BugVerified

External Customer Info:
External Company:  
External Customer Name: Mingo Hagen
External Customer Email:  
External Test Config: My Hardware and Environment details:



A computer running CF11

Attachments:

  1. November 09, 2015 00:00:00: 1_bug-orm-cf11.zip

Comments: