Michael Bayne b6088302d5 Added a bunch of tests for the various functions appearing in a projection.
This uncovered a lot of loose geese as far as the database was concerned, which
necessitated turning a bunch of functions which had specific type into
functions which have type Number.

In general, I made the Funcs/StringFuncs/MathFuncs factory methods provide an
expression typed Number and I left the underlying SQLExpression derivations
able to be more precisely typed. So if you know that your database does not
magically promote an integer column to long when calling sum() on it, you can
force a more specific type. But really, I don't see why you would go to the
trouble. You can just call intValue() on your result and get the int you were
looking for regardless of what the database thought it would be fun to provide.

I also fixed a few HSQLDB variants (average -> avg, round(a) -> round(a, 0),
etc.) and made notes about a few things that just plain don't work in HSQLDB.
Awesome! Fortunately they're things like log-base-10, rather than more critical
functionality.
2010-12-10 00:48:52 +00:00
2010-11-16 21:34:47 +00:00

Depot Persistence Library
-------------------------

Depot is a relational persistence library for Java. It is an ORM library, but
has aims that are somewhat different from the popular "managed" persistence
libraries like Hibernate and others.

Website
-------

See the Depot website for documentation and other info:

  http://code.google.com/p/depot/

Building
--------

The library is built using ant. It can be found here:

  http://jakarta.apache.org/ant/

If you use build-ivy.xml to build, the necessary dependencies will be
automatically fetched by Ivy (which will itself be downloaded if needed).

To compile the code and generate a jar file, invoke:

  % ant -f build-ivy.xml dist

Invoke 'ant -f build-ivy.xml -p' to see information on other build targets.

Depot also provides .classpath and .project files for Eclipse users which
require that you set an EXT_LIBS_DIR variable indicating the location of the
external jar dependencies. The Depot Eclipse project also depends on the
Eclipse project for the samskivert library. That library can be found at:

  http://code.google.com/p/samskivert/

License and Distribution
------------------------

Depot is released under the LGPL. This means you are free to use Depot on any
project, open source or proprietary, but that any modifications made to the
library must be made available to the maintainers. See COPYING for more
detailed information.

The most recent version of the Depot source code is available at the website
listed above.

$Id$
S
Description
A relational persistence library for Java.
Readme BSD-3-Clause 1.8 MiB
Languages
Java 95.6%
Shell 4.3%