Hi John,

no hierarchies are not supported. This is one of the things lacking. You'll have to do some custom coding. Of course you will not be able to create the table structure from the install method, but you should be able to restore, save and delete your beans to the single table. Excess columns should simply be ignored. For ease of use, I'd create DAO that handled the type column and has appropriate methods to handle each type. If you design these methods properly, you shouldn't even need to cast.

I know that this isn't much help, but I hope it still provided you with some useful info.

Best regards,

Geert


On 23 May 2006, at 18:34, JohnT wrote:

Geert Bevin <gbevin <at> uwyn.com> writes:


Thanks for this information Ronny, we discussed this on IRC and indeed
it sounds like a worthwhile addition that wouldn't even be that much
work. We'll try to implement it by the 0.9 release.

Best regards,

Geert
--

Hi Geert. I was looking for information on using Rife persistence (in custom code and using CRUD) on a class hierarchy. This is the closest thing I
found.  So, does Rife now have any support for mapping hierarchies of
persisted beans?  If so, where can I find more information on that?

If not, is there a strategy that you would recommend? I would be inclined to
try the single-table approach
(http://www.agiledata.org/essays/ mappingObjects.html#MapHierarchyToTable), and see how ugly that gets. To use a ContentQueryManager, I think that would mean that I need a superset bean that does all the db stuff, which I can cast to the subclasses based on the type field(s). I'm scared, I must be missing
something?

Thanks,

 - JT



_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin             Uwyn bvba               GTalk: [EMAIL PROTECTED]
"Use what you need"     Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com     7170 Manage, Belgium      AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to