From: Vsevolod (S. I. <si...@cs...> - 2004-12-04 18:47:31
|
Okay, I've looked at what Hibernate does. (Using big Java projects like this makes be feel very good that I am not working in Java, but at the same time makes me envious of what's available there. ) Hibernate is much more complicated than SPOPS, I must say. However, IT DOES NOT FREAKING GENERATE OBJECT METHODS!!! What good is a persistence framework if it does not do that??? They actually have a point, though. By providing your own accessors you can convert objects before persisting (from string to dates, for example). SPOPS can do it through rulesets, which actually makes more sense, as the conversion needs to happen only during fetch/save, not every time accessors are called. Rulesets feel kludgier, though. Ray would have liked it. :) The foreign key fields are called "parent", not "parent_id". The instance variables referring to other objects are either of the type List or the relevant object's. Even their main id() method is read only (in SPOPS ids are mutable, as defined in DefaultBehavior). I still think that this is too abstracted for my taste. I like having access to foreign key ids. Chris - what do you think? Simon -- Simon (Vsevolod ILyushchenko) si...@cs... http://www.simonf.com Terrorism is a tactic and so to declare war on terrorism is equivalent to Roosevelt's declaring war on blitzkrieg. Zbigniew Brzezinski, U.S. national security advisor, 1977-81 |