Sunday, November 11, 2012

Spring by Example (1.2.2)


A new multi-module Contact Application has been added. It is comprised of the following modules:
  • DAO - DB Schema, JPA Entities, Spring Data JPA repositories.
  • Web Service Beans - JAXB beans generated from XSDs.
  • Services - APIs use JAXB beans and Dozer is used to convert between this beans and the JPA entities. Security and transactions are configured in this layer.
  • REST Services - The module has clients & controllers, as well as their Spring configurations. JSON and XML views are supported for requests.
  • Webapp - The webapp as a standard JSP UI, Sencha ExtJS, and also a Sencha Touch UI.
  • Test - The DAO, Services, and REST Services all have an abstract test class for each module that each test extends. This way within each module, all tests have a shared context so Spring only has to load once. All of these tests use an in memory database and the REST Services have an embedded jetty server. REST Services tests can be run with clients using JSON or XML for marshalling.


Friday, August 24, 2012

Spring by Example (1.2.1)


Two new examples have been added on Spring Data JPA. One basic example showing how to create and use a repository, along with creating some basic custom queries. And another example showing how to use Spring Data JPA auditing with custom field mappings. All of the main webapps using JPA were updated to use Spring Data JPA instead of custom repository classes. Also, all of the JPA examples were upgraded to use Hibernate 4.1.

Spring JavaScript was removed from the Spring Web Flow examples. There were some issues around the AJAX tiles usage.


Updated Webapps

Friday, August 17, 2012

Spring by Example Update (1.2)


All examples have been upgraded to Spring 3.1 and Java 6. The exceptions are that the GWT examples have been removed, and Spring dm Server (OSGi) examples have not been updated but are still available for reference.

All modules have also been upgraded to Spring 3.1 and Java 6. Maven group and artifact IDs have been changed back to standard Maven naming and also all project dependencies (no OSGi ones in standard examples).

Spring by Example JDBC has been removed and all projects (except for OSGi ones) have been changed to use the Spring JDBC Custom Namespace.

The Spring by Example repository has been moved to GitHub. New git Spring by Example Repository. The old Subversion repository can still be found here.