schlitt.info - php, photography and private stuff ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Author: Tobias Schlitt :Date: Wed, 19 Nov 2008 23:29:46 +0100 :Revision: 1 :Copyright: CC by-nc-sa ======================================== Object relation mapping in eZ Components ======================================== :Description: I wrote an article, that introduces the relation featuresw of our ORM compoenent "PersistentObject" to you, using a practical example application. For me the coolest feature of PersistentObject is, that the component does not require you're ORM enabled classes to inherit from a certain base to allow your objects to be stored in a database (made persistent). PersistentObject simply allows you to configure any of your applications objects to be persistent and you keep a nice an clean OO structure. If you are interessted in learning more, just follow my trip into PersistentObject on ez.no. I wrote `an article`__, that introduces the relation featuresw of our ORM compoenent "`PersistentObject`__" to you, using a practical example application. For me the coolest feature of PersistentObject is, that the component does not require you're ORM enabled classes to inherit from a certain base to allow your objects to be stored in a database (made persistent). PersistentObject simply allows you to configure any of your applications objects to be persistent and you keep a nice an clean OO structure. If you are interessted in learning more, `just follow my trip into PersistentObject`__ on `ez.no`__. .. __: http://ez.no/community/articles/the_persistentobject_ez_component_putting_relations_where_relations_belong .. __: http://ez.no/doc/components/view/latest/(file)/classtrees_PersistentObject.html .. __: http://ez.no/community/articles/the_persistentobject_ez_component_putting_relations_where_relations_belong .. __: http://ez.no .. Local Variables: mode: rst fill-column: 79 End: vim: et syn=rst tw=79 Trackbacks ========== Comments ======== - Johannes at Wed, 28 Feb 2007 14:30:22 +0100 Hi, I'm just a bit curious. You write: "For me the coolest feature of PersistentObject is, that the component does not require you're ORM enabled classes to inherit from a certain base to allow your objects to be stored in a database" but i the article I read "The PersistentObject component does not require you to inherit from a specific base class, nor to stick to a given naming scheme. The only requirement is to implement two methods in the object class" except the fact tat I'd prefer having an interface for such two methods I can see a inconsistence between thees two statements... - Toby at Wed, 28 Feb 2007 15:12:20 +0100 Hi Johannes! "I can see a inconsistence between thees two statements". I don't see it. We do not require people to extend a certain baseclass (that's what I wrote), but we require them to implement 2 methods in their persistent object classes. That's a huge difference: For example if you have a class "A3Sportsback", which extneds "A3", which extends "Audi", which extends "Car". Now you want to store objects of "A3Sportsback" into a database, we do not require you to a) change your inheritence and make "A3Sportsback" directly from our common base class or b) make you inherit your most bottom base class ("Car") from this one. Instead, you can simply implement the named 2 methods in "A3Sportsback" and are done and your inheritence scheme stays nice and clean. We do not require an interface for setState() and getState(), because we will most propably create a technique in the future, where you can define the methods/properties/whatever that are accessed by PersistentObject on your own. Hope that clearifies it? Thanks for your comment! Regards, Toby - Ahmad Al Jayousi at Tue, 23 Nov 2010 14:36:45 +0100 Ahmad Al Jayousi Philadelphia University Jordan http://www.philadelphia.edu.jo E-mail: aaljayousi@philadelphia.edu.jo - brand experience at Mon, 12 Mar 2012 16:06:26 +0100 Thanks so much for this! I have not been thrilled by a blog post for quite some time! You’ve got it, whatever that means in blogging. Anyway, You’re definitely someone that has something to say that people should hear. Keep up the wonderful job. brand experience - brand experience at Mon, 12 Mar 2012 16:07:15 +0100 Thanks so much for this! I have not been thrilled by a blog post for quite some time! You’ve got it, whatever that means in blogging. Anyway, You’re definitely someone that has something to say that people should hear. Keep up the wonderful job. - power meters at Wed, 14 Mar 2012 14:48:17 +0100 you probably have invested a lot of time in the procedure and the downtime is really impressive. What interests me is one thing further - how did you make those nice picture for the tutorial. It's really impressive. - payday loans at Mon, 26 Mar 2012 16:37:22 +0200 Great write-up, I am a big believer in commenting on blogs to assist the weblog writers know that they’ve added one thing worthwhile to the world large net!Anyway, in my language, there aren’t a lot good source like this. - payday loans at Mon, 26 Mar 2012 16:49:24 +0200 This is my first opportunity to visit this website. I found some interesting things and I will apply to the development of my blog. Thanks for sharing useful information. - ArbiterBlog.com at Fri, 30 Mar 2012 19:31:35 +0200 Using the cache stack with an appropriate replacement strategy allows you to simply ignore which items are stored where and simply use the stack as your only cache storage - Hazardous Blog at Thu, 05 Apr 2012 13:03:18 +0200 Your article shows tells me you must have a lot of background in this topic. Can you direct me to other articles about this? I will recommend this article to my friends as well. Thanks - Domain name lookup at Mon, 16 Apr 2012 12:35:09 +0200 This post is really something special and more information gathering by your site and also useful. I want to some more information thanks. - http://www.microsoft-chat.com at Wed, 13 Mar 2013 10:33:42 +0100 The article regarding the features of the ORM component is good one. It provodede a very useful information. It is good to know that the component does not require the users to inherent from a common base for the subjects to be stored in database. - maggie at Wed, 13 Mar 2013 10:34:59 +0100 The article regarding the features of the ORM component is good one. It provodede a very useful information. It is good to know that the component does not require the users to inherent from a common base for the subjects to be stored in database.http://www.microsoft-chat.com - www.allnetproviders.com at Thu, 25 Apr 2013 02:37:07 +0200 He gets a pass this year. But I am worried about some things next year. Hopefully the FO won’t sit on their hands again. - http://pinterest.com/louisvuittonlv/ at Mon, 13 May 2013 07:53:13 +0200 Louis Vuitton Bags have been ever popular since they entered the fashion scene.