Commit Graph

40 Commits

Author SHA1 Message Date
Oliver Gierke
08ccdfd189 Prepared further development. 2011-02-10 17:27:06 +01:00
Oliver Gierke
81619300a6 Prepare M1 release. 2011-02-10 17:26:48 +01:00
Oliver Gierke
81aa0406fc Tweaked the build further in preparation of release.
- create 'distribute' profile to run JavaDoc creation, documentation build and assembly
- tweaked assembly descriptor to include binary and source jar
- added ant-run-plugin and ant build file to trigger S3 upload
- added xi:fallback nodes to use local docbook references if built offline
- added further project metadata
- added CSS and graphics for JavaDoc
- added Bundlor plugin and template.mf
2011-02-10 10:48:28 +01:00
Oliver Gierke
69c0b3b0fd Added link to HTML reference documentation to readme. 2011-02-09 20:52:48 +01:00
Oliver Gierke
fc13304c40 Polished pom for release. 2011-02-09 20:47:23 +01:00
Oliver Gierke
0f84e85305 Added readme.md to include quickstart info and project metadata. 2011-02-09 20:06:33 +01:00
Oliver Gierke
f406c6eada Further minor fixes to reference documentation.
- use pom version as document version
- activate anchor naming after section ids
2011-02-09 19:34:42 +01:00
Oliver Gierke
bbe24cd71d Added changelog, notice and license. 2011-02-09 18:56:42 +01:00
Oliver Gierke
8d2845c606 DATAJPA-3 - Initial port of Hades reference documentation.
- created Docbook setup (copied from Document project)
- split up Hades documentation into parts and left out what's currently not relevant (extensions, IDE plugin)
- removed sample application part for now
- clearly separated documentation of the general repository implementation from JPA specifics (use the one from Spring Data Commons)
- extracted general namespace configuration into Spring Data Commons
- updated project metadata (repositories, source repo, homepage)
2011-02-09 17:21:06 +01:00
Oliver Gierke
a005f0bd6e Forward ported fix of Hades bug #421.
Moved transaction configuration into JpaRepository interface and redeclared methods of Repository and PagingAndSortingRepository. This is unfortunately necessary as otherwise the custom transaction configuration inside a user's repository interface (e.g. redefining transaction configuration in findAll()) would not be considered as AbstractFallbackTransactionAttributeSource prefers implementation configuration as this is usually more specific (except in our case). This unfortunately requires the redeclaration of the methods.
2011-02-09 13:53:07 +01:00
Oliver Gierke
6b1aabfa91 Added deleteInBatch method to JpaRepository.
Reverted implementation of delete(Iterable<T> entities) to iterate over the entities as creating a query can cause the persistence provider to choke on really large entity sets. Beyond that triggering a query would require us to clear the persistence context which might not be wanted in every case. Thus an additional method deleteInBatch(Iterable<T> entities) especially available on the JpaRepository interface now triggers the query but clearly states the assumptions and side effects in the JavaDoc. Removed some obsolete finals and an obsolete method.
2011-02-03 19:57:22 +00:00
Oliver Gierke
733d9518c8 Added .springBeans to the list of ignored files. 2011-01-28 20:49:29 +02:00
Oliver Gierke
1905fed81c DATACMNS-13 - Moved registration PersistenceExceptionTranslationPostProcessor into JPA bean definition parser. 2011-01-27 14:51:49 +02:00
Oliver Gierke
b884e7374f DATACMNS-12, DATAJPA-15 - transaction-manager-ref is now considered
Updated to latest changes in infrastructure in Spring Data Commons.
2011-01-26 17:51:16 +02:00
Oliver Gierke
c919e2a538 DATAJPA-9 - Expose flag to disable setting dates in auditing namespace.
Auditing namespace element now has a set-dates attribute that defaults to true, but also allows disabling that in case one wants to use database set values.
2011-01-25 16:42:11 +02:00
Oliver Gierke
d108bc9fed DATAJPA-13 - findOne(Specification s) now returns null if there is no result.
I chose not to return the arbitrary first result in case the Specification returns more than one result. First, there's no way to influence the order of the results so that we potentially get different results for the very same call. Beyond that this aligns with the semantics we have for finder methods that are supposed to return a single entity but actually don't.
2011-01-21 01:50:43 +01:00
Oliver Gierke
3db9240647 Fixed premature initialization of AuditorAware implementations.
Set bean scope of AuditingEntityListener to prototype to ensure DI for each instance. Before that AuditorAware implementations referencing a Repository would cause premature initialization of those as the AuditingEntityListener gets created and thus wired when the EntityManagerFactory gets created. At that point in time we unfortunately don't have no DAOs yet.

Added @DirtiesContext to AuditingEntitListenerIntegrationTest because otherwise the @Configurable backing prototype bean definition leaks into other test cases.
2011-01-20 19:28:03 +01:00
Oliver Gierke
b6767afadc Fixed missing application of Pageable handed to query methods using query derivation from the method name. 2011-01-20 12:10:28 +01:00
Oliver Gierke
b9b245df5e Adapted newly introduced Property abstraction.
Altered JpaQueryCreator to correctly add property traversals and joins based on Property. Added integration tests to verify property traversal on collections and simple properties.
2011-01-07 22:48:53 +01:00
Oliver Gierke
d17aa75944 Updated copyright notice to reach into 2011. 2011-01-02 14:12:57 +01:00
Oliver Gierke
0e87d300e8 Fixed version of surefire plugin to 2.5. 2010-12-30 13:26:48 +01:00
Oliver Gierke
916f4feb75 Adapt method renaming of getFirstItem() to getOffset() in Pageable. 2010-12-29 18:04:10 +01:00
Oliver Gierke
608cbfe6bb Fixed Findbugs issues. 2010-12-29 15:45:50 +01:00
Oliver Gierke
e9475dc76a Polished JavaDoc. 2010-12-29 14:50:55 +01:00
Oliver Gierke
6ddc56dbb2 Added package-info.java files. 2010-12-29 14:44:16 +01:00
Oliver Gierke
2c17f4cab1 Cleaned up license headers to align correct formatting. 2010-12-29 13:57:57 +01:00
Oliver Gierke
b50b4f573b Adapt to latest changes in repository factory base classes. 2010-12-29 13:44:36 +01:00
Oliver Gierke
f2d92cec55 Removed all references to 'DAO'. 2010-12-29 13:01:43 +01:00
Oliver Gierke
dee9628e2c Fixed placeholders in SLF4J logging statements (see Hades #417). 2010-12-27 15:39:32 +01:00
Oliver Gierke
33afdbe710 Re-activated @Configurable DI in AuditingEntityListener.
Added test cases to verify setting the auditor works.
2010-12-23 17:53:47 +01:00
Oliver Gierke
80669a5ffd Use correct AspectJ library and reduce it's scope to testing. 2010-12-23 16:02:46 +01:00
Oliver Gierke
c8a3e79b6e Polished JavaDoc and code.
Removed any reference to Hades from JavaDoc and code. Use a logger instead of System.out in test cases.
2010-12-23 16:02:14 +01:00
Oliver Gierke
e274e18054 Adapted BeanDefinitionParsers according to latest changes in Spring Data Core. 2010-12-07 20:44:17 +01:00
Oliver Gierke
4d1188b751 Migrated query-from-methodname algorithm to PartTree infrastructure.
Query creation is not String based anymore but rather leverages the PartTree infrastructure and builds a JPA criteria API query instead. Changed query lookup and execution accordingly.
2010-12-07 20:43:54 +01:00
Oliver Gierke
488e6979ab Fixed metadata declaration for namespace. 2010-12-06 21:12:37 +01:00
Oliver Gierke
d3254dc2d1 Reflect changes made to QueryLookupStrategy.
Some minor improvements in terms of reducing the number of times we lookup the actual PersistenceProvider by reflection.
2010-11-30 12:42:51 +01:00
Oliver Gierke
8b76c04afd Applied generics to JpaQueryLookupStrategy after changes in Spring Data Core. 2010-11-29 23:02:30 +01:00
Oliver Gierke
27c8ebc808 Added repositories to grab dependencies for current Hibernate and EclipseLink. Fixed artifact ids. 2010-11-29 16:20:44 +01:00
Oliver Gierke
e8c5666070 Initial commit of Spring JPA repository abstraction.
Port of the Hades project whereas the JPA independent part resides in Spring Data Commons Core. Reflect changes refactorings for DATACMNS-2, DATACMNS-3, DATACMNS-4, DATACMNS-5, DATACMNS-6, DATACMNS-8, DATACMNS-9, DATAJPA-2.
2010-11-28 18:20:47 +01:00
Oliver Gierke
85e588d7d0 Initial commit. 2010-11-07 18:29:20 +01:00