Re: Persistence...

Aleksandar Vidakovic <[email protected]> Wed, 25 May 2005 21:12:09 +0200
Newsgroups gmane.comp.java.keel.devel
Message-ID <1117048329.5236.4.camel@popper>
That is a good idea! I had the schema problems with hsqldb... but the
strategy you described for mysql seems to be a general solution.

Will try this over the weekend...

Thanks again,

Aleks


On Mon, 2005-05-23 at 20:03 -0700, Louis Moore wrote:
> --- 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
> 
-- 
Aleksandar Vidakovic <[email protected]>

http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com