mdb
3c8b020d6c
If a persistent record is abstract, do not generate ColumnExp() constants for
...
it; if it extends another record, generate ColumnExp() constants for persistent
fields inherited from its parents.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2184 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-15 02:39:42 +00:00
mdb
5b5ffd38ea
Make sure the record in question is not computed.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2183 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-15 01:16:02 +00:00
mdb
83acd3d195
The logging output already contains the enclosing method name. So instead of
...
repeating the method name:
2007/08/14 16:07:52:157 INFO PersistenceContext.cacheStore: cacheStore: entry [key=...
we'll just say what we're doing:
2007/08/14 16:07:52:157 INFO PersistenceContext.cacheStore: storing [key=...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2182 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-14 23:18:22 +00:00
mdb
252b417c9a
Brevify our toString() output so that cache debug logging is readable.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2181 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-14 23:15:08 +00:00
mdb
364dbdaec0
Return the string value of our cached value as our own.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2180 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-14 23:12:53 +00:00
mdb
ff56b6afa5
Add a mechanism for warning about records that are lazily initialized after an
...
attempt has been made to resolve all registered records.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2179 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-14 21:35:38 +00:00
mdb
5383d20418
Use IllegalArgumentException since those are basically illegal arguments. Also
...
use @exception because it's a nice way to let humans and tools know what's
going on.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2178 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-14 18:47:21 +00:00
mdb
23178d285a
"List to Array to List to Set" becomes "to Set".
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2177 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-14 18:37:40 +00:00
zell
20e8de4702
Tighten up a few places where we return null to callers who really never want to see nulls -- throw exceptions instead.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2176 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-14 17:40:00 +00:00
zell
d5b0b3ddcb
Add dialect-agnostic auto-migration of full text indexes.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2175 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-14 17:00:26 +00:00
zell
b2ea629149
Log the creation of a full text search index on the MySQL side.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2174 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-14 16:09:23 +00:00
zell
c0a5cb690d
Better comments explaining the hairiest bits of auto-migration.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2173 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-14 15:41:36 +00:00
mdb
86ed2e59b1
Tidied up SQL execution in liaisons; fixed MySQL column renaming.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2172 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-14 01:11:09 +00:00
zell
510955aa81
Remember the test.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2171 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-13 23:02:40 +00:00
zell
87d1cb6a6e
Rename @Index(columns) to @Index(fields) and do the proper translation to column name during table creation / migration.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2170 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-13 22:57:09 +00:00
mdb
bc41237e00
Classes go after methods.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2169 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-13 21:59:25 +00:00
mdb
ccc0dfdda6
Catch marshaller initialiation failure and report it more informatively.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2168 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-13 21:47:56 +00:00
mdb
ac3ab74a4b
More Zell changes:
...
- Re-read the table metadata after we run pre-default migrations, since those
are pretty much guaranteed to change the table.
- Changed EntityMigration.Rename to a pre-default rather than a post-default
migration.
- Made all the static EntityMigration subclasses use the generic liaison rather
than JDBCUtil.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2167 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-13 19:42:46 +00:00
mdb
1f7d58d290
Patch from Zell to quell warnings about mismatched schemas for database-
...
specific auxiliary columns (specifically Postgres's FTS column).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2166 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-13 19:37:09 +00:00
mdb
2e2a6f09f7
Added getCacheAdapter().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2165 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-11 00:48:59 +00:00
mdb
d58e6a3457
Patch from Zell to properly walk the inheritance tree and aggregate all
...
index-related annotations.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2164 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-08 23:58:43 +00:00
mdb
f945ae78b5
Nixed unused bits.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2163 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-08 23:49:15 +00:00
mdb
90f8aa05cd
From Zell: select text and binary column types based on the @Column(length)
...
annotation.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2162 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-08 23:47:50 +00:00
mdb
f1177bcff6
Widening.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2161 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-08 18:51:11 +00:00
mdb
ec68201645
Small fix from Zell.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2160 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-07 18:05:49 +00:00
mdb
df61cc8cf3
Reinstate automatic schema migration, per Zell.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2159 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-06 21:52:52 +00:00
mdb
d372c3c369
Oops, my un-PreparedStatement-ifying was booched.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2158 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-04 01:30:42 +00:00
mdb
3bc26bab22
Allow the site identifier to be constructed with a custom default.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2157 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-08-01 01:21:17 +00:00
mdb
1f2450d8ba
Full text index support from Zell, also a fix for deletion.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2156 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-31 21:36:02 +00:00
mdb
a60eab7504
Always use an explicit query if we aren't using a cache.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2155 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-31 02:09:32 +00:00
mdb
121e17c594
distclean does everything clean does and need not depend on it.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2154 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-31 00:16:44 +00:00
mdb
c08d4c6535
Fixy fixy.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2153 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 22:18:54 +00:00
mdb
991216b078
Scratch that, we already checked.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2152 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 22:10:27 +00:00
mdb
8e9a269bc2
More non-nulling.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2151 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 22:10:09 +00:00
mdb
8ba36474c1
Nor a null one.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2150 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 22:08:44 +00:00
mdb
fc29a71f3f
Don't try to restore auto-commit on a closed connection.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2149 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 22:08:20 +00:00
mdb
2b80f75546
Synchronize on the connection while we're using it to cooperate with
...
SimpleRepository + StaticConnectionProvider.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2148 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 20:10:47 +00:00
mdb
c21dae6d3a
Restore our auto-commit settings before releasing the connection back to the
...
provider.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2147 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-30 18:54:51 +00:00
mdb
48213dd36c
copy() was moved to IOUtils.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2146 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-27 00:15:35 +00:00
mdb
3f6a9520fe
Tidy up Depot build depends; reinstate build.depot.tools depend.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2145 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-26 20:09:06 +00:00
mdb
7c9e3a59c4
Missed a spot.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2144 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-26 19:13:57 +00:00
mdb
7ad213ab13
Added PersistenceContext.shutdown(), exposed shutdown() in ConnectionProvider.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2143 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-26 19:13:34 +00:00
mdb
8116d469e4
Zell patch to factor caching code into pluggable CacheAdapter class. Allows us
...
to disable caching and/or replace it with less industrial strength system
during development.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2142 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-26 19:07:20 +00:00
mdb
ca92185d86
Properties don't like having non-Strings put into them.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2141 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-26 18:43:28 +00:00
mdb
180eedc1ca
distclean need not depend on clean, it already performs the superset of that
...
action and it has the added benefit of being idempotent.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2140 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-26 00:31:20 +00:00
mdb
02c376e88d
Missed a spot.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2139 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-25 23:33:16 +00:00
mdb
e021e82865
Deprecation begone!
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2138 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-25 23:30:07 +00:00
mdb
023384ead1
Info-ize various build feedback messages.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2137 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-25 21:46:51 +00:00
mdb
8a4c7ba54f
El Giganto Depot database dialects support from Zell. PostgresSQL here we
...
come. Automatic schema migration is currently disabled and remains to be
dialectified.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2136 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-25 20:53:40 +00:00
mdb
dd495a477a
Nix setting auto-commit here. It has to be done in a way that coordinates with
...
SimpleRepository's synchronization if we're going to be mixing Depot and
SimpleRepository so we'll either do that or we'll take a look at how JDBC's
native connection pooling handles this.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2135 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2007-07-24 02:13:17 +00:00