Title:
Bug 79404:(Watson Migration Closure)We'd like to implement the mapped superclass approach but it seems that this is currently not supported (see https://www
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Dirk Eismann / Dirk Eismann (dirk eismann)
Created: 08/12/2009
Components: ORM Support
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 3
Problem:
We'd like to implement the mapped superclass approach but it seems that this is currently not supported (see https://www.hibernate.org/hib_docs/ejb3-api/javax/persistence/MappedSuperclass.html)The idea is to have a Base.cfc which is a mapped superclass that is not mapped to any table at all, it just acts as a container for common properties (e.g. createdBy, lastModifiedAt etc.) and defines preInsert() / postInsert() event callbacks. Then all entity CFCs extend from this Base.cfcThe problem is, that we cannot use persistent = true on that Base.cfc as this throws an error (table name is missing). But if we only put properties into the Base.cfc these won't get persisted.
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3039653
External Customer Info:
External Company:
External Customer Name: Dirk Eismann
External Customer Email: 450F45AE446034F8992015D5
External Test Config: 08/12/2009
Attachments:
Comments: