[opencms] Re: [opencms-dev] OpenCms in the future?

Alexander Wallace aw at avatartechnology.com
Thu Sep 15 15:40:00 CEST 2005


I have had time to see how the persistence layer of opencms is implemented... 
redesigning the persistence layer may be a big task, but, (and i ask this to 
the ones that have seen it), what is the possibility of writing a hibernate 
implementation wrapped around whatever is currently used to implement another 
database? and if that was the case, would it take advantage of all the 
hibernate features to not only enhance db support but also performance, etc? 
Even if at the beginning we don't have UI in the setup to configure a 
hibernate configuration file, and one would have to manually do so if 
hibernate was selected to handle the database...

what are the thoughts on this?

On Thursday 15 September 2005 05:06 am, Claus Priisholm wrote:
> 
> There could be many benefits of using an ORM like Hibernate (for one 
> thing it is just to tedious to have to write SQL or JDBC calls). 
> Portability being another one.
> Making a CmsDbDriver as Tristan mentioned would probably be the simplest 
> and quickest approach, but if that is going to deliver all the benefits 
> is probably another issue.
> Having an ORM as a part of the core would also benefit the 
> module-development since many modules need database access (beyond the 
> "a file per record" approach of the structure contents).
> 
> But in any case such a project would benefit from what Alkacon is doing 
> as far as providing branches on the CVS.
> 
> Jorge González wrote:
> > I agree with you.
> > 
> > Hibernate is the best way to forget about db issues (compatibility, 
speed).
> > They are working hard to solve all of this things for us.
> > 
> > How could we do it ?
> > 
> > 1) build a data access layer from the actual tables.
> > 2) use the raw new hibernate to mimic the actual db layer.
> > 3) from the interfaces, rebuild tables/object model.
> > 
> > Actually i'm using hibernate, so if i can help, please tell me.
> > 
> > 
> > 
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > 
> 
> -- 
> Claus Priisholm, CodeDroids ApS
> cpr (you know what) codedroids.com - http://www.codedroids.com
> 
> Javadocs and other OpenCms stuff: 
> http://www.codedroids.com/community/opencms
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 



More information about the opencms-dev mailing list