concrete-inheritance

Hibernate MappingException with inheritance of a concrete non-domain class in Grails

蓝咒 提交于 2019-12-05 05:49:58
问题 The Scenario I have a need to represent an object in two different contexts. One context should not persist and the other should. The persistent objects are actual data pulled from another system. The non-persistent objects represent parts of a product definition. The two will be compared, and I'm not interested in storing the definition data. The persisting object needs to have additional information stored with it. The Implementation In order to accomplish this, I decided that the most

Should I avoid multi-table (concrete) inheritance in Django by any means?

烂漫一生 提交于 2019-11-26 21:54:18
Many experienced developers recommend against using Django multi-table inheritance because of its poor performance: Django gotcha: concrete inheritance by Jacob Kaplan-Moss , a core contributor of Django. In nearly every case, abstract inheritance is a better approach for the long term. I’ve seen more than few sites crushed under the load introduced by concrete inheritance, so I’d strongly suggest that Django users approach any use of concrete inheritance with a large dose of skepticism. Two Scoops of Django by Daniel Greenfield ( @pydanny ) Multi-table inheritance, sometimes called “concrete

Should I avoid multi-table (concrete) inheritance in Django by any means?

怎甘沉沦 提交于 2019-11-26 06:30:22
问题 Many experienced developers recommend against using Django multi-table inheritance because of its poor performance: Django gotcha: concrete inheritance by Jacob Kaplan-Moss, a core contributor of Django. In nearly every case, abstract inheritance is a better approach for the long term. I’ve seen more than few sites crushed under the load introduced by concrete inheritance, so I’d strongly suggest that Django users approach any use of concrete inheritance with a large dose of skepticism. Two