Re: Persistence...

Louis Moore <lrm718-/[email protected]> Mon, 23 May 2005 20:03:51 -0700 (PDT)
Newsgroups gmane.comp.java.keel.devel
Message-ID <[email protected]>
--- Aleksandar Vidakovic <[email protected]> wrote:
> Salut all,
> 
> just wanted to tell you that I just checked in some
> updates for the
> hibernate persistence service.
> 
> Basically it's an upgrade to hibernate 3.0. Major
> improvements can be
> found in the keel-hibernate configuration
> translation. Especially
> support for hibernates id generators has improved a
> lot. Another point
> is the support for schema creation. Until now the
> keel persistent
> configuration had a schema attribute, but the
> implementation for this
> was missing.
> 
> Work is not finished; some unit tests are still
> crashing, primarily
> because of failures when saving the class AllTypes
> (shouldn't be to
> complicated; but it's too late now ;-). Another
> issue in the current
> version is that databases which don't understand
> schemas are not
> supported (workaround?).

there should be a few ways to work around this -- I've
dealt with it before using a custom NamingStrategy and
an extended Dialect (for mysql). 

For example, if you want mysql to treat a schema name
as if it were a catalog, you can subclass MySqlDialect
and return '.' instead of '_' in the
getSchemaSeparator method. 

We use a NamingStrategy to substitute schema names
retreived from configuration at runtime to get our
full table names.

Not sure exactly what you're trying to do but if you
want to point me to the code you're working on I could
try to help out.

> 
> It would be nice to see more synchronization of
> common code in
> svc-persist-default and svc-persist-hibernate in the
> future. I added
> another abstract class (AbstractPersistent) in
> svc-persist-base. Maybe
> this makes the implementation of new persistent
> services a little bit
> easier.
> 
> Cheers,
> 
> Aleks
> 
> http://keelframework.org/documentation.shtml
> Keelgroup mailing list
> [email protected]
>
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
> 
http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com