62c17819f4
Omit Transaction.start() in favor of ctx.startTx().
Michael Bayne
2014-10-01 14:51:37 -07:00
07934f0187
A bare-bones transaction test.
Michael Bayne
2014-10-01 14:48:47 -07:00
9cead5e7e5
Oops, let's put those statements int the right order.
Michael Bayne
2014-10-01 14:33:08 -07:00
872b2d9ef3
Some robustness bits.
Michael Bayne
2014-10-01 14:27:55 -07:00
d676847c24
Initial pass at transaction support.
Michael Bayne
2014-10-01 14:16:48 -07:00
63f69eb843
Tweaky tweak.
Michael Bayne
2014-10-01 11:25:16 -07:00
9874be4034
Added special update() provided by Ray.
Michael Bayne
2014-10-01 11:19:21 -07:00
f663ac9bd4
Bump version in docs.
Michael Bayne
2014-06-26 11:57:47 -07:00
0047c94dc4
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2014-06-26 11:55:38 -07:00
3f8400447c
[maven-release-plugin] prepare release depot-1.6.5
Michael Bayne
2014-06-26 11:55:35 -07:00
1d826d903f
Beans/frank.
Michael Bayne
2014-06-26 11:50:45 -07:00
0583572f34
More docs link fixes.
Michael Bayne
2014-06-25 16:19:20 -07:00
201a720982
Docs link fixes.
Michael Bayne
2014-06-25 16:18:20 -07:00
38dee2e948
Need the .md suffixes.
Michael Bayne
2014-06-25 16:16:33 -07:00
634651fa5a
Moved wiki docs into main project.
Michael Bayne
2014-06-25 16:15:18 -07:00
3db7b4445b
Fixed wiki links. Added API docs link
Michael Bayne
2014-06-25 16:12:37 -07:00
44091660ea
Migrated to Github.
Michael Bayne
2014-06-25 15:39:13 -07:00
712fe35283
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2014-06-25 21:54:35 +00:00
ad864e3498
[maven-release-plugin] prepare release depot-1.6.4
Michael Bayne
2014-06-25 21:54:27 +00:00
e12e0bf15c
Update Maven compiler plugin.
Michael Bayne
2014-06-25 21:49:12 +00:00
c60d8e2dde
A bunch of Javadoc fixes.
Michael Bayne
2014-06-25 21:49:09 +00:00
a961f5e4c2
Version updates! Mostly plugins, samskivert 1.8.2.
Michael Bayne
2014-06-25 21:48:53 +00:00
97b404c236
Provide a modicum of thread safety for marshaller init.
Michael Bayne
2014-06-25 21:48:50 +00:00
c02625f0d7
Preparing for 1.7-SNAPSHOT development.
Ray Greenwell
2014-05-20 18:37:46 +00:00
832f934faf
Preparing for depot-1.6.3 release.
Ray Greenwell
2014-05-20 18:34:06 +00:00
d45af7c98c
Depend on samskivert 1.7.4..
Ray Greenwell
2014-05-20 18:33:19 +00:00
3906c69a88
Liaison now handles exceptioning for us.
Michael Bayne
2014-05-02 20:46:36 +00:00
f2be63ec19
Choke usefully if we can't obtain last inserted id.
Michael Bayne
2014-05-02 20:14:43 +00:00
800add9667
Clean up imports.
Ray Greenwell
2014-05-02 18:28:50 +00:00
9ebd2c677c
Use new smarter DatabaseLiaison.lastInsertedId.
Michael Bayne
2014-05-02 18:19:51 +00:00
2cf224dd18
Whoops! My last edit didn't actually work, it ended up falling back.
Ray Greenwell
2014-05-02 18:12:46 +00:00
1a9fc404ba
Ok, this works on both mysql and postgres.
Ray Greenwell
2014-05-02 01:31:58 +00:00
e2a9702c46
This getGeneratedKeys business doesn't seem to work for us on mysql. Trying a catch/fallback. This should at least provide a workaround for now...
Ray Greenwell
2014-05-01 23:01:55 +00:00
e08911369e
Only use RETURN_GENERATED_KEYS on inserts.
Michael Bayne
2013-11-20 19:45:24 +00:00
ca4ec1f4d3
Reverse order in addAll(List,Cons).
Michael Bayne
2013-10-10 22:06:34 +00:00
1547c7d44c
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2013-09-17 19:11:08 +00:00
7e1f8d4230
[maven-release-plugin] prepare release depot-1.6.2
Michael Bayne
2013-09-17 19:11:04 +00:00
99a4d7a18e
Only rewrite record file if it changed.
Michael Bayne
2013-09-17 19:07:19 +00:00
bc8a18dec5
Factor the logic of genrecord from the Ant harness.
Michael Bayne
2013-09-17 19:07:16 +00:00
58ede042a6
Fixed some use of wrong log helper.
Michael Bayne
2013-05-24 18:45:26 +00:00
8a74276caf
Various tidyings.
Michael Bayne
2013-05-24 18:30:57 +00:00
952d01c55b
Info -> debug for initial version record message.
Michael Bayne
2013-05-24 18:30:53 +00:00
1bee1d0351
Revamp identity value generator to use Statement getGeneratedKeys.
Michael Bayne
2013-05-16 18:42:16 +00:00
81c24f56bf
Fix rawtypes.
Michael Bayne
2013-05-16 18:42:13 +00:00
0b5369fd11
Do this cast in a way that Java 7 doesn't complain about.
Michael Bayne
2013-05-16 18:42:09 +00:00
0c26a26ce0
Bump HSQLDB to 2.9, fix test that assumed count(*) returned int.
Michael Bayne
2013-05-16 18:42:05 +00:00
e468e2937a
Add nexus-staging-maven-plugin; makes releases easier.
Michael Bayne
2013-05-08 23:33:03 +00:00
f3b7af452d
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2013-05-07 19:54:03 +00:00
1f0a64b8e3
[maven-release-plugin] prepare release depot-1.6.1
Michael Bayne
2013-05-07 19:53:59 +00:00
8803b2de12
Use latest guava and samskivert.
Michael Bayne
2013-05-07 19:51:36 +00:00
c340e7062d
Use normal Guava.
Michael Bayne
2013-05-07 19:39:37 +00:00
4af2b7c95d
More inline comments explaining why we don't just drop the DKE.
Ray Greenwell
2013-05-07 00:41:17 +00:00
ce3a340199
Bugfix: store() should never throw a DuplicateKeyException.
Ray Greenwell
2013-05-07 00:03:05 +00:00
c63ce0c10e
Out with arrays, in with collections.
Michael Bayne
2013-05-06 18:19:31 +00:00
a625c831ae
Updates to work with HSQLDB 2.2.4.
Michael Bayne
2013-05-06 17:38:16 +00:00
959dbacb53
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2012-10-09 19:15:33 +00:00
e6072acae9
[maven-release-plugin] prepare release depot-1.6
Michael Bayne
2012-10-09 19:15:26 +00:00
5afad5b6b3
Move to samskivert 1.7 and guava-jdk5 13.0
Ray Greenwell
2012-10-03 00:24:17 +00:00
9614fc02b9
This note has been obsolete since r376. Removed.
Ray Greenwell
2012-08-13 17:56:37 +00:00
2a81514ae7
Use the right classpath in genrecord.
Michael Bayne
2012-07-25 16:38:46 +00:00
7f839f8ddd
Patch from Mike T to support parameterized types in genrecord.
Michael Bayne
2012-07-25 16:38:43 +00:00
42e8d6e75e
According to Javadoc, getColumnLabel is the method that is meant to respect the 'as foo' construct we rely on.
Par Winzell
2012-07-03 23:38:35 +00:00
f7d7c586c0
Make GenRecordTask only honor @Transient, like DepotMarshaller.
Michael Bayne
2012-06-27 18:22:36 +00:00
97be694e70
Preparing for 1.6-SNAPSHOT development.
Par Winzell
2012-04-21 22:11:35 +00:00
c7b02449a9
Preparing for depot-1.5.3 release.
Par Winzell
2012-04-21 22:00:46 +00:00
4734156b31
Nix unused import.
Michael Bayne
2012-04-13 18:12:51 +00:00
d254148fd0
Use ImmutableMap. I mistakenly thought we didn't use Gauva in Depot.
Michael Bayne
2012-04-13 18:12:34 +00:00
781564f9e0
A swipe of Occam's razor.
Michael Bayne
2012-04-13 16:09:02 +00:00
90d01ce58d
Revamp stock marshaller creation, use to further optimize @Transform search.
Michael Bayne
2012-04-13 16:00:51 +00:00
6d8eabce93
Improve the semantics of @Transform handling.
Michael Bayne
2012-04-13 16:00:46 +00:00
385e823b5b
Preparing for 1.6-SNAPSHOT development.
Mark Johnson
2012-04-11 02:43:52 +00:00
4d28182537
Preparing for depot-1.5.2 release.
Mark Johnson
2012-04-11 02:42:20 +00:00
946f05d3a0
Resolve our migration record during initRepos.
Michael Bayne
2012-04-05 22:21:37 +00:00
5984dbba80
Make it possible to register migrations outside a repository.
Michael Bayne
2012-04-04 18:46:46 +00:00
d0e8f18b2d
Preparing for 1.6-SNAPSHOT development.
Par Winzell
2012-02-10 15:59:32 +00:00
5f4777186e
Preparing for depot-1.5.1 release.
Par Winzell
2012-02-10 15:56:46 +00:00
73346e9fd0
Add the actual Distinct class; fix bugs.
Par Winzell
2012-02-03 21:39:12 +00:00
cf47c335a0
Implement SELECT DISTINCT [ON <exp>] as a QueryClause.
Par Winzell
2012-02-03 21:29:16 +00:00
03ee53194b
Oops, ended up passing that to the ctor rather than a toggly method.
Michael Bayne
2012-02-02 18:30:56 +00:00
020e7911ba
Added support for disabling schema migrations for a PersistenceContext.
Michael Bayne
2012-02-02 18:27:58 +00:00
2d998ac23a
As Jamie points out, we should use pe as the cause, rather than writing them out of the (chain of exception) inheritance.
Michael Bayne
2012-01-14 02:39:33 +00:00
dbf0684567
If we're creating a table the first time, note that we now expect the current version to be 0, not -1.
Michael Bayne
2012-01-13 18:35:29 +00:00
55a866842b
Report the identity of the connection we're trying to establish.
Michael Bayne
2012-01-13 17:15:10 +00:00
d2f530f850
Bump to guava 11.0.1.
Ray Greenwell
2012-01-10 20:04:56 +00:00
fa66796863
When grabbing the schema migration lock, ensure that the current version is set to what we expect it to be.
Ray Greenwell
2012-01-05 20:35:55 +00:00
73c111c20b
Update to Guava 11, change MapMaker/ConcurrentMap -> CacheBuilder/LoadingCache.
Ray Greenwell
2012-01-05 20:34:14 +00:00
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.)
Ray Greenwell
2011-12-06 19:26:53 +00:00
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.
Ray Greenwell
2011-12-03 22:06:08 +00:00
fb0a5f2884
Improve the documentation here.
Michael Bayne
2011-11-23 03:06:14 +00:00
33615067d9
Fail early.
Michael Bayne
2011-10-24 21:13:25 +00:00
3fbd5f4993
Made log message less terrifying.
Michael Bayne
2011-10-20 20:10:59 +00:00
bedc76db9b
Fixed typo.
Michael Bayne
2011-10-15 16:39:21 +00:00
3acb035572
More target normalization.
Michael Bayne
2011-10-15 16:38:00 +00:00
856e795634
We have a property for the javadoc.dir.
Michael Bayne
2011-10-15 16:29:03 +00:00
0fd39f61f1
Switch to ooo-build 2.9 and install/deploy targets.
Michael Bayne
2011-10-15 16:28:28 +00:00
332abecef7
[maven-release-plugin] prepare for next development iteration
Michael Bayne
2011-09-30 00:46:03 +00:00
fa263416ae
[maven-release-plugin] prepare release depot-1.5
Michael Bayne
2011-09-30 00:45:33 +00:00
6faff4617b
Ordering tweaks.
Michael Bayne
2011-09-30 00:44:29 +00:00
c3a01d5883
Capitalized name, fixed description.
Michael Bayne
2011-09-30 00:44:07 +00:00
5a3266640f
Update some depends and the samskivert API docs URL.
Michael Bayne
2011-09-30 00:41:39 +00:00