Commit Graph

849 Commits

Author SHA1 Message Date
Michael Bayne 959dbacb53 [maven-release-plugin] prepare for next development iteration 2012-10-09 19:15:33 +00:00
Michael Bayne e6072acae9 [maven-release-plugin] prepare release depot-1.6 2012-10-09 19:15:26 +00:00
Ray Greenwell 5afad5b6b3 Move to samskivert 1.7 and guava-jdk5 13.0 2012-10-03 00:24:17 +00:00
Ray Greenwell 9614fc02b9 This note has been obsolete since r376. Removed. 2012-08-13 17:56:37 +00:00
Michael Bayne 2a81514ae7 Use the right classpath in genrecord. 2012-07-25 16:38:46 +00:00
Michael Bayne 7f839f8ddd Patch from Mike T to support parameterized types in genrecord. 2012-07-25 16:38:43 +00:00
Par Winzell 42e8d6e75e According to Javadoc, getColumnLabel is the method that is meant to respect the 'as foo' construct we rely on. 2012-07-03 23:38:35 +00:00
Michael Bayne f7d7c586c0 Make GenRecordTask only honor @Transient, like DepotMarshaller.
We've chosen not to conflate Java transience with Depot non-persistence. It's a
little wonky to have to choose a particular memory model behavior just to have
a field not persisted in your record.
2012-06-27 18:22:36 +00:00
Par Winzell 97be694e70 Preparing for 1.6-SNAPSHOT development. 2012-04-21 22:11:35 +00:00
Par Winzell c7b02449a9 Preparing for depot-1.5.3 release. 2012-04-21 22:00:46 +00:00
Michael Bayne 4734156b31 Nix unused import. 2012-04-13 18:12:51 +00:00
Michael Bayne d254148fd0 Use ImmutableMap. I mistakenly thought we didn't use Gauva in Depot. 2012-04-13 18:12:34 +00:00
Michael Bayne 781564f9e0 A swipe of Occam's razor. 2012-04-13 16:09:02 +00:00
Michael Bayne 90d01ce58d Revamp stock marshaller creation, use to further optimize @Transform search. 2012-04-13 16:00:51 +00:00
Michael Bayne 6d8eabce93 Improve the semantics of @Transform handling.
@Transform is first sought on the field itself, which overrides any other
handling. Next it is sought on the class that represents the field (i.e. if the
field is type Foo we look for an @Transform annotation on class Foo). We avoid
doing this somewhat expensive search if the field has a type that we know
cannot have an @Transform annotation. If we've still found no @Transform
annotation (which is unfortunately the overwhelmingly common case), we then
create a stock marshaller.
2012-04-13 16:00:46 +00:00
Mark Johnson 385e823b5b Preparing for 1.6-SNAPSHOT development. 2012-04-11 02:43:52 +00:00
Mark Johnson 4d28182537 Preparing for depot-1.5.2 release. 2012-04-11 02:42:20 +00:00
Michael Bayne 946f05d3a0 Resolve our migration record during initRepos.
Otherwise, if a data migration is registered and run after the initialization
process, we'll end up warning that this record has not yet been initialized.

In theory, you should register your data migrations prior to calling initRepos,
but I don't want to be too draconian about that. Unlike schema migrations, you
*could* conceivably mean to start your app up and let it run before running
data migrations.
2012-04-05 22:21:37 +00:00
Michael Bayne 5984dbba80 Make it possible to register migrations outside a repository. 2012-04-04 18:46:46 +00:00
Par Winzell d0e8f18b2d Preparing for 1.6-SNAPSHOT development. 2012-02-10 15:59:32 +00:00
Par Winzell 5f4777186e Preparing for depot-1.5.1 release. 2012-02-10 15:56:46 +00:00
Par Winzell 73346e9fd0 Add the actual Distinct class; fix bugs. 2012-02-03 21:39:12 +00:00
Par Winzell cf47c335a0 Implement SELECT DISTINCT [ON <exp>] as a QueryClause. 2012-02-03 21:29:16 +00:00
Michael Bayne 03ee53194b Oops, ended up passing that to the ctor rather than a toggly method. 2012-02-02 18:30:56 +00:00
Michael Bayne 020e7911ba Added support for disabling schema migrations for a PersistenceContext.
This allows two separate services which share a database to assign "control" of
the schema to one of the services. The non-controlling service can be
configured to simply fail if new code is deployed to said service before new
code is deployed to the controlling service, rather than have the
non-controlling service migrate the schema out from under the controlling
service.
2012-02-02 18:27:58 +00:00
Michael Bayne 2d998ac23a As Jamie points out, we should use pe as the cause, rather than writing them
out of the (chain of exception) inheritance.
2012-01-14 02:39:33 +00:00
Michael Bayne dbf0684567 If we're creating a table the first time, note that we now expect the current
version to be 0, not -1.
2012-01-13 18:35:29 +00:00
Michael Bayne 55a866842b Report the identity of the connection we're trying to establish.
This is more useful than parroting the lower level exception message, which
will already be shown in the full stack dump anyway.
2012-01-13 17:15:10 +00:00
Ray Greenwell d2f530f850 Bump to guava 11.0.1. 2012-01-10 20:04:56 +00:00
Ray Greenwell fa66796863 When grabbing the schema migration lock, ensure that the current
version is set to what we expect it to be.

Otherwise if one node reads an old value for the schema version, it will
be able to grab the migration lock as long as another node has already
completed the migration.
2012-01-05 20:35:55 +00:00
Ray Greenwell 73c111c20b Update to Guava 11, change MapMaker/ConcurrentMap -> CacheBuilder/LoadingCache. 2012-01-05 20:34:14 +00:00
Ray Greenwell 9838e4922c Added OrderBy.Order.NULL.
"order by null" can be used in a query with a "group by" in it to tell
the database to suppress the overhead of sorting the results.
(Supported in postgres and mysql.)

Changed the build visitors to have a whitelist of supported
Orders, and to NPE on a null value for the Order enum.

Note that previously "order by null" could be accomplished by passing
a null value to your OrderBy, but now the enum constant must be used.
I can change that if this disrupts anything.
2011-12-06 19:26:53 +00:00
Ray Greenwell acbdfc4044 Added two new Order constants: ASC_NULLS_FIRST and DESC_NULLS_LAST.
Only supported on postgres. If needed we could allow for fallbacks
for other databases.
2011-12-03 22:06:08 +00:00
Michael Bayne fb0a5f2884 Improve the documentation here. 2011-11-23 03:06:14 +00:00
Michael Bayne 33615067d9 Fail early. 2011-10-24 21:13:25 +00:00
Michael Bayne 3fbd5f4993 Made log message less terrifying.
I don't like to see the words "Aborting creation." when I'm in the middle of
creating databases. If we're not creating the index, fine, but don't give me
the idea that we're aborting the entire creation of the table.
2011-10-20 20:10:59 +00:00
Michael Bayne bedc76db9b Fixed typo. 2011-10-15 16:39:21 +00:00
Michael Bayne 3acb035572 More target normalization. 2011-10-15 16:38:00 +00:00
Michael Bayne 856e795634 We have a property for the javadoc.dir. 2011-10-15 16:29:03 +00:00
Michael Bayne 0fd39f61f1 Switch to ooo-build 2.9 and install/deploy targets. 2011-10-15 16:28:28 +00:00
Michael Bayne 332abecef7 [maven-release-plugin] prepare for next development iteration 2011-09-30 00:46:03 +00:00
Michael Bayne fa263416ae [maven-release-plugin] prepare release depot-1.5 2011-09-30 00:45:33 +00:00
Michael Bayne 6faff4617b Ordering tweaks. 2011-09-30 00:44:29 +00:00
Michael Bayne c3a01d5883 Capitalized name, fixed description. 2011-09-30 00:44:07 +00:00
Michael Bayne 5a3266640f Update some depends and the samskivert API docs URL. 2011-09-30 00:41:39 +00:00
Ray Greenwell c3c651340b Guava 10.0. 2011-09-28 22:32:02 +00:00
Par Winzell 710d2ffaf2 From Bruno Garcia: Add a mode for FullText to search for rows that match all the words in a query rather than any of them. 2011-08-24 15:04:43 +00:00
Dave Hoover 3c1e6f7538 Depot needs java 1.6 2011-07-01 18:11:14 +00:00
Dave Hoover 27f33b8d90 Don't need that semicolon. 2011-07-01 18:11:11 +00:00
Michael Bayne 3f8f15af9f Added support for clearing caches. 2011-06-27 21:08:01 +00:00