[Cosmo-dev] hibernate prototype

Brian Moseley bcm at osafoundation.org
Tue Aug 15 11:13:50 PDT 2006


On 8/15/06, rletness at simdeskcorp.com <rletness at simdeskcorp.com> wrote:

> I've just about finished a hibernate persistence layer prototype.  This
> layer consists of an object model (based on org.cosmo.model) new dao
> interfaces, and hibernate implementations of the daos.  In addition to a
> new User and Ticket dao, there is a Content (for general content/files)
> and Calendar (for calendar objects) dao.  These two daos should give you
> all the methods necessary for supporting webdav and caldav.  I have done
> some initial tests on large datasets and the results are very promising
> (sub second time-range/property queries).  There is still a lot of
> optimizing to be done, but it is a good start.  I have tested using
> mysql and derby.

great news! have you done any work with recurring events or freebusy info?

> I've been developing this outside of the cosmo environment as a
> stand-alone layer(to speed things up), and its baked enough to where I
> can start integrating it into the cosmo source via the sandbox.  Is the
> sandbox up to date?  Also, I'm new to maven so I'm trying to figure out
> how to add in dependency support.  What do I do if I I have a dependency
> that isn't found on one of the maven repositories?

the sandbox was copied from the trunk a few weeks ago. the only work
that's happened on the trunk subsequent to the copy is the scooby
merge, which is more or less independent of the hibernate work.

our current plan is to release 0.5 with the merged scooby ui and with
a few additonal sharing-related features. i will elaborate on this
plan in a few days as we begin more in depth discussions.

after 0.5, assuming the hibernate and jcr-server code is stable and we
want to move forward with it, we'll assess the viability of merging it
from the sandbox back into the trunk and making it the centerpiece of
0.6.

re maven - we host a repository at osaf where we can put jars that
aren't available in the main repository. just let me know what
specifically you need to be in there and i'll get that done. i wonder
if you're thinking of the jta jar and others that aren't specifically
publicly distributable on their own?

> My goal is to have a first-pass checked in by the end of the week so you
> can start re-factoring jcr-server.  I forsee a bunch of changes as you
> find out what works/what doesn't.  I just want to get something in place
> so we can move forward.

as a matter of fact, i've been working on the jcr-server updates for
the last week and a half. i've got the code that uses jcr isolated
into single package and have replaced it in the running server with
new code that uses HomeDirectoryService to read and write content.
this requires new service apis, since right now there's no way through
HDS to actually save a resource, and so far i've been implementing
those service apis with jcr daos. but once you've committed your
hibernate code, i'll wire up HDS to use that instead, and the last 20%
of the jcr-server work should be pretty straightforward. this is
exciting!


More information about the cosmo-dev mailing list