single-table-inheritance
Rails and Hobo with Single Table Inheritance problem
I\'m getting an error when running db:setup for my Hobo project with a clean database. I have two models, A and B, where B extends A through single-table-inheritance. Creating everything works. But if[详细]
2022-12-17 08:16 分类:问答single table inheritance: must all classes in hierarchy have same properties?
I have the following class Item < ActiveRecord::Base end class Tal开发者_运维知识库k < Item[详细]
2022-12-16 04:12 分类:问答Use both Class Table and Single Table inheritance in Castle Activerecord?
In Castle Activerecord (on top of NHibernate), is it possible to use class table inheritance globally, and single table inheritance on part of the inheritance tree? I would like to do something 开发者[详细]
2022-12-15 22:41 分类:问答Relation between two single-table inheritance models
I have the following two models class ContactField < ActiveRecord::Base end class Address < ContactField[详细]
2022-12-13 21:51 分类:问答Table per hierarchy inheritance with POCO entities in Entity Framework 4
Our organization is looking to standardize on Entity Framework once v4 comes out. As a result, I am looking at what it would take to migrate our application that uses NHibernate for persistence to EF4[详细]
2022-12-13 14:15 分类:问答Rails: How can I lock data into a record which is sourced from many system tables?
I am currently building a rails application based around insurance. There is an admin section where the staff can control the system tables, mostly what appears in drop down lists, although some are m[详细]
2022-12-11 01:39 分类:问答STI and has_many association with "type" column as Key
I am using Single Table Inheritance for managing different types of projects. I decided to store some information associated with each project type. So i created new table \"project_types\" with \"mod[详细]
2022-12-09 05:16 分类:问答Creating Single Table Inheritance Records in Rails
I\'m using single table inheritance for my application.My poly开发者_如何学编程morphic type is Maintenance with only one subtype, right now, named OilChange.I\'m running into problems creating my reco[详细]
2022-12-08 21:33 分类:问答
加载中,请稍侯......