CONTENTS DELETED
The author has deleted this message.
|
VAM wrote:
> I have next situation > 1. Hierarchy of classes > Abstract class Media and subclasses: Book, Disk > > If I use simple mapping there classes with mapping Books and Disks into > different tables, then all works fine. > > Next step, I introduced new class - Library. > Library contents collection of Book or Disk. > And when I save Library into DB I get error: '' > If turn on DatabaseAccessor logging we see, that Glorp not mapping libraryId > for Book (or Disk). > queries (depending on how many type resolvers there are) or N joins. Alternatively, you can have a second column on the library table that knows which type the id is meant to be. I don't know the exact code to do this, but you might want to join the new glorp mailing list and ask there. Michael _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by vam
I think the issue here is that if you want to define the
relationship from Library to Books|Disks that you'll need to define a
complex join on that relationship. Glorp isn't smart enough to figure
that one out on its own. See descriptorForGlorpWarehouse: in the Glorp
test code. However, I think if you defined the reverse relationships from
Book->Library and Disk->Library that that might be
adequate.
At 06:11 PM 4/13/2009, VAM wrote: I have next situation --
Alan Knight [|], Engineering Manager, Cincom Smalltalk
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |