tracker issue : CF-3039653

select a category, or use search below
(searches all categories and all time range)
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 Tracker

Status/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:

This bug has been voted..
Vote by External U.
23055 | November 10, 2011 07:01:52 PM GMT
This would be very useful and save code duplication
Vote by External U.
23056 | November 10, 2011 07:01:53 PM GMT
This bug has been voted..
Vote by External U.
23057 | November 10, 2011 07:01:54 PM GMT