From: Philippe N. <ph...@re...> - 2005-04-28 11:07:47
|
Hi, I'd like to make my DB schema evolve a bit. And i came to a little issue. Here is what i want to do: - i have two classes: A and B. - i'd like to make A and B inherit from a class C. The fact is, since A et B used to exist "in their corner", i can have both some A and B objects with the same ID. From what i understood from the Inheritance documentation, when i will create a A instance, it's ID will also be inserted in C, something like: (someID, "A"). But it seems like the primary key C will only be its id. So i won't be able to have (for instance): 3, "A" 3, "B" in C :( So, could it be possible to make the above not break ? Something like a compound key (id, childName) in InheritableSQLObject ? Philippe |