Commit Graph

665 Commits

Author SHA1 Message Date
Michael Bayne c7b60a1de8 No value in having the transforming marshaller be a named class. Switch to
slightly more concise code.
2010-10-25 20:09:37 +00:00
Michael Bayne ff3f0aa337 Updated with Maven dependencies. 2010-10-25 19:57:25 +00:00
Michael Bayne 5046c1d906 Unused import trimming. Type parameter cleanup. 2010-10-25 19:55:27 +00:00
Michael Bayne ec04d618c4 Nixed vestigial methods. 2010-10-25 19:53:34 +00:00
Michael Bayne 230a53faf8 Depot hasn't needed Velocity for a long time. 2010-10-22 06:00:23 +00:00
Charlie Groves c564c36e3a Headerz 2010-10-19 00:37:42 +00:00
Charlie Groves a649efac99 Missing @Overrides, extra imports 2010-10-19 00:33:31 +00:00
Charlie Groves 9368da4ebf Skip classes in GenRecordTask if they have @GeneratedValue on a field without @Id. I'd rather stop
the build, but other errors in class processing seem to lead to skipping, so I'm not rocking the
boat.

If @GeneratedValue is on a field without an @Id, depot creates the necessary indices to generate the
value, but it doesn't actually do the generation on insertion.  Rather than making it work without a
good use case for it, I'm adding this check to keep people from stumbling into a broken design.
2010-10-19 00:29:31 +00:00
Michael Bayne f9619f0dc8 We don't have a rsrc/ directory any more, so that can go. 2010-10-19 00:28:10 +00:00
Charlie Groves 9d9c4e3e5e Get the genrecord and tests targets running again 2010-10-19 00:22:05 +00:00
Michael Bayne 5c56ec1fe7 Only do our signing when we're deploying to the public repository. 2010-10-18 21:53:03 +00:00
Michael Bayne 1c28f34ac4 Use hardcoded plugin version numbers to appease the Maven 3 nazis. 2010-10-18 21:52:16 +00:00
Michael Bayne 590cf991d7 No exclusions, we've always got all of our dependencies. 2010-10-15 16:48:27 +00:00
Michael Bayne 8181c409f9 Switched to obtaining dependencies via Maven Ant tasks. 2010-10-15 16:27:06 +00:00
Ray Greenwell 92c201575d Update the tests.
One test no longer works, because the StringArray transformer now inherits
the fromPersistent method from StringBase, and has a generic return type.
Perhaps we can update FieldMarshaller to deal with Types instead of classes
when validating... But for now I did what all bad programmers do when a test
fails: comment it out.
2010-10-12 20:39:07 +00:00
Ray Greenwell dcd4046c60 Transformer rejigger.
Transformer is now an abstract class with a default init() method.
The Type parameter has been removed from fromPersistent().
The Transformer annotation now has some new attributes that
can be used to hint whether you want a result that is immutable or interned,
the meaning and support of both is completely up to the Transformer.
Brought back my uber Iterable<String> transformers, with immutable/intern
support in a single Transformer.
 - interning will intern the strings
 - immutable will wrap the collections in Collections.unmodifiable*
   (using a guava Immutable collection ends up creating a temporary
    builder collection and then copying the elements)
 - if immutable AND interning then the collection itself is
   "interned".
At some point I'll add support for nearly any Iterable
of an otherwise supported type, so that our Records can have
List<Integer> and other such fields.
2010-10-12 19:35:07 +00:00
Ray Greenwell 2ff3bac12d Look for any worthy method, even in superclasses. 2010-10-01 01:29:46 +00:00
Ray Greenwell c7eb6f56ef Roll this back until I do some more testing.. :( 2010-09-30 22:25:16 +00:00
Ray Greenwell 89bec13aa2 Added Transformers that will always return immutable collections,
interned Strings, or both.
I may rework this into attributes that can be specified for any
@Transformer annotation, and leave it up to each Transformer
whether they are honored (and how).
2010-09-30 21:30:59 +00:00
Ray Greenwell 9fafebd487 Support creating arrays of java.sql.Date. 2010-09-29 18:31:31 +00:00
Michael Bayne f293412671 [maven-release-plugin] prepare for next development iteration 2010-09-23 18:55:03 +00:00
Michael Bayne 448c89289a [maven-release-plugin] prepare release depot-1.0 2010-09-23 18:54:54 +00:00
Ray Greenwell 020d33c8aa Was looking at how some things work and made a few drive-by optimizations
to FindAllQuery.
- We don't need to destructively modify the Set of keys to fetch if we hold
  on to one iterator.
- We can create an ArrayList that won't need to grow if our keys Iterable
  happens to be a Collection.
- And, just generally prefer Lists factories to specific constructors.
2010-09-20 23:21:06 +00:00
Andrzej Kapolka 8c5f333f73 Is there a reason why this didn't return TIME? It seems to work. 2010-09-17 02:46:17 +00:00
Michael Bayne c609db73de Prepare for forthcoming release. Apparently the Maven "process" is to leave
your POM at nextversion-SNAPSHOT and then when you do all the release
machinations, it shaves the -SNAPSHOT off, tags, builds and ships your thing,
then commits a new POM with nextnextversion-SNAPSHOT as the version.
2010-09-10 16:35:53 +00:00
Michael Bayne 07e4bdec4a Move overview.html to a place where Maven's javadoc plugin will find it. 2010-09-09 20:31:51 +00:00
Michael Bayne 721b3c73ef Bye bye Ivy. 2010-09-09 20:31:31 +00:00
Michael Bayne 33f6351af5 Add link to project website to docs. 2010-09-09 20:28:34 +00:00
Michael Bayne d2a6b4422f Various updates to bring POM up to date with current "best practices." 2010-09-09 20:27:45 +00:00
Michael Bayne 0fea1dfb07 Nix link since we're not including protected bits in the docs. 2010-09-09 20:27:18 +00:00
Michael Bayne 685e7e8ef5 Nixed some bits inherited from copied-and-pasted samskivert POM. 2010-09-09 05:30:30 +00:00
Michael Bayne 2d3cfff9b4 Adding needed Javadoc links. Removing unneeded system properties. Configuring
plugins to use latest version.
2010-09-09 05:26:50 +00:00
Michael Bayne 5fe094a804 Import needed for Javadoc comment. 2010-09-09 05:26:16 +00:00
Michael Bayne d2d88aa25e A pom file for Depot. I believe that once the samskivert Maven repo is
authorized by Sonatype, I'll be able to upload Depot into it as well, since
they both use the com.samskivert groupId. w00t!
2010-09-08 23:30:08 +00:00
Dave Hoover 5c5a0f8545 Tell eclipse about the new way things are organized. 2010-08-30 18:59:34 +00:00
Michael Bayne e2c7446732 We want our ivy.xml in ivys/ivy.xml as well. 2010-08-28 01:28:20 +00:00
Michael Bayne a3a462ec04 Tell Ivy that we want to publish jar, source and javadoc artifacts. 2010-08-28 01:25:44 +00:00
Michael Bayne 4966f76067 Updated to reflect my growing understanding of how to use Ivy. 2010-08-28 01:23:16 +00:00
Michael Bayne 0aa165c31e Added publish-remote target, nixed snapshot target. 2010-08-27 19:57:02 +00:00
Michael Bayne 57b2aa31d4 Updated the readme to suggest building using build-ivy.xml so that dependencies
are automatically fetched.
2010-08-27 19:26:34 +00:00
Michael Bayne e648cfc7bd Wrangled Ivy into obtaining samskivert dependency from it's own "repository".
Why does the Java dependency management world have to suck so badly? Is it not
crazy to want projects to be able to publish their own releases and to make it
easy for other projects to depend on those published releases? Why do I have to
reconfigure the standard configuration to add new repository sources? Why
doesn't the IvyRep resolver work and do something sophisticated?

Why can't I just fucking put in my ivy.xml:

<dependency org="com.samskivert" name="samskivert" rev="1.0" conf="runtime"
            source="http://samskivert.googlecode.com/svn/releases"/>

and have Ivy do something smart like assume that there will be a standard
directory structure at the specified root and that it will contain the ivy.xml
and module.jar file that it needs, and just download them?

Instead I have to write a ton of fucking boilerplate and wire it all in via a
separate ivysettings.xml file, and then helpfully instruct anyone who uses my
fucking library that they too can have the pleasure of doing the same.
2010-08-27 19:23:48 +00:00
Michael Bayne 3f7a7be9da Some Javadoc fixing. Though it's very annoying that I have to use &#064;
instead of @. Thanks for making things totally unreadable in the source file
javadoc. How about \@ instead?
2010-08-27 18:11:22 +00:00
Michael Bayne 026e49518c Don't need this conditional business here. 2010-08-27 18:01:03 +00:00
Michael Bayne aa879c3019 Allow the release version to be specified on the command line. 2010-08-27 17:57:38 +00:00
Michael Bayne 6f7527ec6b Fixes to Ivy-based build. 2010-08-27 17:54:06 +00:00
Michael Bayne 3535ffc9fd Got moved to src/tests/java. 2010-08-27 17:49:46 +00:00
Michael Bayne 28f9439b5f More layout standardizing. 2010-08-27 17:49:18 +00:00
Michael Bayne 6778ada227 Moving toward more standard project layout. 2010-08-27 17:47:07 +00:00
Michael Bayne 5a97565eaa New HSQLDB requires length for VARBINARY. 2010-08-27 17:41:11 +00:00
Andrzej Kapolka 2471487d2f Oops, that will never be null. 2010-08-18 22:43:33 +00:00