Commit Graph

64 Commits

Author SHA1 Message Date
Oliver Gierke
9ee13be9b5 #197 - Upgraded to Spring Boot 1.4 RC1.
Tweaked the output folder for Querydsl type generation to avoid running into a bug in the Maven compiler plugin 3.5.1 [0].

Fixed an issue in a sample script used to demonstrate MongoDB script execution as the new JavaScript engine seems to be more strict.

Switched to the MongoDB starter and excluded the legacy MongoDB Java driver from projects using Querydsl to consistently make use of the current driver only.

[0] https://issues.apache.org/jira/browse/MCOMPILER-271
2016-07-15 13:05:56 +02:00
Oliver Gierke
5bb1b8b77c #195 - Make JPA examples work with Hibernate 5.2.
Upgrade to Hibernate 5.2.1 and Spring Framework 4.3 to pull in the necessary tweaks to let the latter work with the former.

Excluded hibernate-entitymanager and refer to hibernate-core instead as the 5.2 release has merged the artifacts and the former is not available anymore.

The project showing the stored procedure support still needs to stay on Hibernate 5.0.7 because the stored procedure support on HSQLDB has been broken since 5.0.8. The original issue [0] has been fixed but running the module on 5.2.1 now runs into a NullPointerException from AbstractProducedQuery [1].

[0] https://hibernate.atlassian.net/browse/HHH-10515
[1] https://hibernate.atlassian.net/browse/HHH-10915
2016-07-01 12:33:01 +02:00
Oliver Gierke
6684c8c69b #190 - More simplifications for Spring Boot 1.4 M3.
Replaced all occurrences of @SpringApplicationConfiguration with @SpringBootTest. Using SpringRunner instead of @SpringJUnit4ClassRunner now.
2016-06-10 21:26:46 +02:00
Oliver Gierke
24ca298de2 #193 - Added examples for using projections with pagination in JPA and MongoDB.
Requires an upgrade to snapshots as the JPA implementation is broken in Hopper SR1 but will be fixed in SR2 (Boot 1.4 RC1). Switched to use @SpringBootTest in test cases.
2016-06-02 12:55:15 +02:00
Oliver Gierke
2314c6e726 #186 - Prepare upgrade to Spring Boot 1.4 M2 and Hibernate 5.
Upgraded to Spring Boot 1.4 M2 and thus Hibernate 5.1 transitively.
Switched to H2 as database for all examples using JPA by accident as the
invalid error logging for HSQLDB schema creation got worse in 5.1 (see
[0]). The JPA examples themselves have to stay on HSQLDB as H2 doesn't
support stored procedures. The stored procedures example in turn has to
be downgraded to 5.0.7 as all following versions currently break stored
procedure execution support [1]. Reworked the JPA auditing example as
5.1 breaks on generic types used in support types like AbstractAuditable
[2].

Tweaked content type assertions in some REST related test cases as
Spring 4.3 returns an encoding alongside the media type.

[0] https://hibernate.atlassian.net/browse/HHH-10605
[1] https://hibernate.atlassian.net/browse/HHH-10515
[2] https://hibernate.atlassian.net/browse/HHH-10514
2016-04-13 18:11:09 +02:00
Oliver Gierke
4cc558e42e #179 - Fixed build for multiple-datasources module after Spring Boot 1.4 upgrade.
We now explicitly disable DevToolsDataSourceAutoConfiguration as it currently expects exactly one DataSource being present.

Switched to Spring's @Transactional instead of the javax.transactional one.
2016-04-05 17:50:53 +02:00
Mark Paluch
dc50706c27 #160 - Add excerpts for Query by Example. 2016-03-18 16:27:59 +01:00
Oliver Gierke
f8bfe5c79e #163 - Upgraded to Hopper RC1.
Removed all previous references to snpahosts. Removed explicit version declaration of Lombok as Boot sets that for us in 1.4.

Upgraded Elasticsearch dependency to 2.2 and uncommented the actual sample module as it needs to be updated due to API changes in Elasticsearch and Spring Data Elasticsearch in turn.

Adapt to API changes in entity lookup configuration for Spring Data REST.

Tweaked Neo4j build setup by using the dedicated embedded driver JAR.
2016-03-18 16:26:11 +01:00
Oliver Gierke
1f94bb12f1 #153 - Polishing.
Simplified domain model using Lombok. Moved configuration classes into test source folder.

Original pull request: #154.
2016-03-17 19:01:27 +01:00
Mark Paluch
beabdf8a79 #153 - Add examples for Query by Example functionality with JPA and MongoDB.
Original pull request: #154.
2016-03-17 19:01:23 +01:00
Franziska Sauerwein
1fe9aaeefa #157 - Fix Typo in readme.
Two -> To
2016-03-04 07:50:26 +01:00
Oliver Gierke
9cb44b3166 #81 - Samples for new projection support for JPA and MongoDB. 2016-02-12 14:37:52 +01:00
Oliver Gierke
62b2d644cc Updated dependencies and codebase for Querydsl 4. 2016-02-12 14:36:49 +01:00
Svante Kumlien
5a9b785499 #135 - Fixed some typos in readmes. 2015-10-15 09:15:41 +02:00
Oliver Gierke
d9dfb81e12 #134 - Added example for using Optional as query method parameter.
Got rid of Guava dependency in favor of JDK 8's Optional. Upgraded basic JPA example to Spring Data Hopper to get access to the newly introduced functionality.
2015-10-07 19:50:49 +02:00
Oliver Gierke
0c1bee04b3 #128 - Upgraded to Spring Data Gosling GA.
Spring Boot 1.3.0 M2 -> 1.3.0 M4
Spring Framework 4.2.0 -> 4.2.1
2015-09-03 17:14:09 +02:00
Oliver Gierke
9bb284fc84 #119 - Polishing.
Changed the update clause to set the the entire principal the reflect a domain object design that's closer to what might be set up if Spring Data auditing is used, too.

Made use of Lombok in the domain objects where possible. Reduced visibility of repository interfaces to package scope. Minor test case cleanups.
2015-08-01 21:08:38 +02:00
Thomas Darimont
50faabb2af #119 - Added example for use of SpEL expressions in JPQL update statements. 2015-08-01 21:06:46 +02:00
Oliver Gierke
bca4e65e4f #115 - Harmonized package names.
We now consistently use example.springdata.$store as base package name.
2015-07-16 09:10:20 +02:00
Oliver Gierke
9641cb7f53 #113 - Upgraded to Spring Boot 1.3 M2.
Removed temporary upgrades to Spring Framework build snapshots where possible.
2015-07-15 09:49:50 +02:00
Thomas Darimont
8037e4d157 #106 - Add CompletableFuture example to readme. 2015-06-18 14:38:25 +02:00
Oliver Gierke
8ed43d34fc #106 - Polishing.
Some JavaDoc improvements, copyright headers. Using a logger instead of System.out in the test case now. Removed commented out dependency declaration from JPA pom.xml.
2015-06-18 14:23:29 +02:00
Thomas Darimont
fd7d35a826 #106 - Add example with CompletableFuture and Java 8 for JPA.
Simple test case that demonstrates CompletableFuture.

Original pull request: #106.
2015-06-18 14:12:55 +02:00
Thomas Darimont
98bfe34996 #105 - Added example for filtering data solely on Role in jpa-security sample.
Added example for dynamic filtering in query solely based on the current principals role.
2015-06-17 12:26:29 +02:00
Thomas Darimont
6a57cef345 #104 - Fix jpa eclipselink example build.
Added main method to eclipselink JPA example to prevent “Unable to find main class” error from spring-boot repacking during build.
2015-06-17 12:13:23 +02:00
Oliver Gierke
3f7616367c #93 - Switched to RowMapper for Spring 4.2 compatibility.
ParameterizedRowMapper has been deprecated for a while and finally removed in Spring 4.2. We now use the simple parameterized RowMapper interface.
2015-06-02 07:53:50 +02:00
Oliver Gierke
b8e29431de #73 - Added example how to customize all Spring Data repositories. 2015-05-05 18:08:10 +02:00
Oliver Gierke
2da20819da #50 - Simplified EclipseLink example.
Switched to a much more simplified domain model as the primary focus of the sample is on the infrastructure setup, not a sophisticated domain model.

Added dedicated build profiles for static (compile-time) weaving and load-time weaving. Simplified application configuration to use more of Spring Boot's auto-configuration features.

Ported Markdown README to Asciidoc.

Original pull request: #68.
2015-05-04 15:07:44 +02:00
Jeremy Rickard
b092d6fb30 #50 - Added example of using Spring Data JPA with EclipseLink.
original pull request: #68.
2015-05-04 15:07:39 +02:00
Oliver Gierke
49d91bb697 #71 - Upgraded to Spring Security 4.0.
Upgraded security related sample projects in the rest and JPA sub-folders to Spring Security 4.0.
2015-03-26 18:38:16 +01:00
Oliver Gierke
9ecb720f4a #69 - Added example for how to set up Spring Data JPA with two DataSources. 2015-03-19 10:06:46 +01:00
Thomas Darimont
65cef4132d #66 - Added JPA example for using Java 8 Streams with a derived query.
This example demonstrates the usage of Java 8 Stream as return type for derived queries.
2015-03-12 14:20:49 +01:00
Oliver Gierke
2c97493f9f #62 - Added a section on the Stream usage to the README.
Original pull request: #63.
2015-03-09 12:53:44 +01:00
Thomas Darimont
f5e6b3b6be #62 - Add example for Java 8 Streams in JPA.
This example demonstrates streaming of results in JPA.

Original pull request: #63.
2015-03-09 12:53:43 +01:00
Oliver Gierke
966d3c9e44 #59 - Upgraded to Spring Data Fowler RC1. 2015-03-09 12:53:42 +01:00
Oliver Gierke
a865425657 #45 - Polished POM for JPA Java 8 module. 2015-03-09 12:53:42 +01:00
Oliver Gierke
797db3eece #53 - Enable -parameters for compilation.
Removed obsolete @Param annotations from repository interfaces. Upgraded to Fowler snapshots for JPA 2.1 examples as we need a fix in derived stored procedure execution to work correctly.

Related issues: DATAJPA-681.
2015-02-27 19:26:37 +01:00
Oliver Gierke
0abc0dc3b1 #45 - Adapt to type moves of JSR-310 attribute converters. 2015-01-08 09:42:29 +01:00
Oliver Gierke
7f3339a610 #45 - Removed Jadira user types in favor of new JPA 2.1 AttributeConverters.
We now activate the JSR-310 AttributeConverters shipped with Spring Data JPA 1.8. Removed the dependency to Jadira user types and switch to non-time-zoned Java 8 LocalDateTime.

Original pull request: #46.
2015-01-04 18:09:14 +01:00
Oliver Gierke
e953f6d5e5 #45 - Temporarily add required Spring Data JPA dependencies. 2014-12-30 19:19:35 +01:00
Eddú Meléndez
30386210c4 #39 - Added example of SpEL usage in manually defined JPA queries. 2014-12-05 20:10:02 +01:00
Thomas Darimont
f4266ac211 #15 - Added example for top/first keywords in repository methods. 2014-09-09 11:25:09 -05:00
Christoph Strobl
5af654a12a #5 - Add sample for Slice usage.
Original pull request: #17.
2014-09-09 11:05:38 -05:00
Christoph Strobl
caf5ba4edc #5 - Add sample for derived deleteBy.
Original pull request: #14.
2014-09-03 14:46:17 +02:00
Oliver Gierke
7473831b41 Upgraded to Spring Data Evans RC1.
Move to Java 8 entirely.
2014-08-13 18:14:17 +02:00
Oliver Gierke
d1623673d8 Polishing of CustomerRepository in JPA Java 8 sample project. 2014-07-22 06:33:18 +02:00
Oliver Gierke
58ac158e39 Removed deprecation in showcase project. 2014-07-22 06:27:42 +02:00
Thomas Darimont
67ab7716dc Added example for SpringSecurity integration.
Fixed some Java 6 incompatibilities.
Added mention for the security module in readme.

Original pull request: #1.
2014-07-10 21:37:35 +02:00
Oliver Gierke
dce2994f1f Prepare security integration examples. 2014-07-10 21:37:35 +02:00
Oliver Gierke
d748923519 Added sample for invocation of JDK 8 default method on a repository. 2014-07-07 16:08:05 +02:00