This Week in Spring, December 6th, 2011

Engineering | Josh Long | December 07, 2011 | ...

Welcome back to another installment of This Week in Spring.

     We're in December, folks. I just can't believe that it's already December. 

Um, OK, ignore me.
Just astonished. Let's get into the roundup because there is a lot of new content this week.

  1. Did you miss SpringOne? Well, that's a shame. You missed out on a lot. However, don't fret, our friends at InfoQ are riding to the rescue with a steady stream of videos from the different talks at SpringOne2GX. The first two talks on the docket? The opening keynote with SpringSource CTO Adrian Colyer, SpringOne 2Gx Keynote - Spring, Yesterday, Today and Tomorrow.
    		On day two, <a href= "">Ben Alex lead the SpringOne 2GX technical keynote</a>, a procession of 
    		  demonstrations and thought provoking insights into next generation application development with Spring and on the cloud.
    		<LI> <a href = "">Ramnivas Laddad</a>, all around great guy and one of the brilliant, mad…

Spring Data JPA 1.0.2 released

Releases | Oliver Drotbohm | December 06, 2011 | ...

Dear Spring Community,

I'd like to announce the release of Spring Data JPA 1.0.2.RELEASE. The release includes the following improvements and fixes:

  • Fixed query creation for Comparable values (DATAJPA-99)
  • Fixed alias detection when entity name contained number (DATAJPA-110)
  • SimpleJpaRepository's deleteAll() does not call em.clear() anymore (DATAJPA-111)
  • Upgraded to Querydsl 2.2.5 (DATAJPA-102, DATAJPA-115)
  • Fixed auditor mappings in AbstractAuditable (DATAJPA-120)
  • Consolidate Expression creation for property references and sort orders (DATAJPA-103)
  • Fixed dependency injection in QueryDslRepositorySupport (DATAJPA-113)

Downloads | JavaDocs | Reference Documentation | Changelog

To learn more about the project, visit the Spring Data JPA Page. Looking forward to your feedback on the forum or in the issue tracker.

Video: Introduction to using MongoDB and Spring on Cloud Foundry

News | Adam Fitzgerald | December 06, 2011 | ...

In this video Jared Rosoff from 10gen and Thomas Risberg from SpringSource show what the combination of MongoDB and Cloud Foundry has to offer to Spring developers. They develop a sample application combining MongoDB and the Spring Data project, and show how to build and deploy it to the cloud. After 60 minutes, you too will be ready to develop and deploy to the cloud your own Spring applications that use MongoDB.

Be sure to thumbs up the presentation if you find it useful and subscribe to the SpringSourceDev channel to receive updates about all the latest presentation recordings and screencasts.

Countdown to Grails 2.0: Persistence

Engineering | Peter Ledbrook | December 05, 2011 | ...

It's been a while since the last Countdown blog post, but the release of 2.0.0.RC3 gives me a good reason to write another. In the last post, I focused on database migration and how we are standardising on the new Database Migration Plugin. I'll be continuing on the theme of persistence here and introducing several great new features, particularly around querying.


Let's start with some of the minor improvements. First, abstract domain classes are now treated as most people would expect: an abstract base domain class results in a table for it and its subclasses. For example, consider the…

Video: SpringOne 2GX Technical Keynote - Next Generation Applications

News | Adam Fitzgerald | December 01, 2011 | ...

SpringOne 2GX 2011 Technical Keynote: Ben Alex

Following on from yesterday's video, InfoQ has just published the video from the Technical Keynote at SpringOne 2GX 2011 with Ben Alex. Ben discusses in detail the forces that are driving change into enterprise development and provides an overview of the research that Spring engineers are doing to define the next generation of applications. Ben is joined on stage by numerous Spring experts:

  • Keith Donald & Jeremy Grelle demonstrate how to use Spring based REST services with PhoneGap to produce iPhone and Android applications
  • Craig Walls & Roy Clarkson discuss social media integration with modern web applications
  • Graeme Rocher & James Tyrell demonstrate off line operation in an HTML 5 app using an in browser database
  • Tim Fox discusses the rise of asynchronous programming models on the server

A shareable version of Technical Keynote slides are also available on our SpringOne 2GX 2011 Keynote Presentations page.

Many thanks to InfoQ for coming to Chicago to record so many of the fantastic SpringOne 2GX presentations.

Video: SpringOne 2GX Keynote - Spring, Yesterday, Today and Tomorrow

News | Adam Fitzgerald | November 30, 2011 | ...

SpringOne 2GX 2011 Opening Keynote: Adrian Colyer

SpringOne 2GX 2011 was a phenomenal event and thanks to InfoQ, if you were not able to attend in person you can still see much of the content. The first video is from the Opening Night Keynote with Adrian Colyer. Adrian recaps the core principles underlying Spring and then surveys the development progress in the Data, Mobile, Social and Platform-as-a-Service spaces. Adrian also invites Graeme Rocher up to the stage to provide an update on Grails development. Derek Collison also makes a guest appearance to demonstrate some of the great features available in Cloud Foundry.

A shareable version of Adrian's slides are also available on our SpringOne 2GX 2011 Keynote Presentations page.

Many thanks to InfoQ for coming to Chicago to record so many of the fantastic SpringOne 2GX presentations.

Cross Site Request Forgery and OAuth2

Engineering | Dave Syer | November 30, 2011 | ...

In this short article we look at Cross Site Request Forgery in the context of OAuth2, looking at possible attacks and how they can be countered when OAuth2 is being used to protect web resources.

OAuth2 is a protocol enabling a Client application, often a web application, to act on behalf of a User, but with the User’s permission. The actions a Client is allowed to perform are carried out on a Resource Server (another web application or web service), and the User approves the actions by telling an Authorization Server that he trusts the Client to do what it is asking. Common examples of Authorization Servers on the internet are Facebook and Google, both of which also provide Resource Servers (the Graph API in the case…

This Week in Spring, November 29th, 2011

Engineering | Josh Long | November 30, 2011 | ...

Welcome back to another installment of This Week in Spring. There's a lot to talk about this week as well as a bevy of new releases, so let's get right to it!

  1. Chris Beams has announced the latest and greatest release of Spring 3.1, RC2. This is the intended final release so get the bits and try it out soon. For a tour of what's what in Spring 3.1, check out the release notes and the Spring 3.1 blog series
  2.  <LI> 
    	The steady march to Spring Integration 2.1 GA continues. This week, <A href= "">Spring Integration 2.1 RC1  was  released</a>.  
    There are a lot of new features in  Spring Integration 2.1, including support for GemFire, RabbitMQ, MongoDB, and much, much, more.  For the full details, <a href="">see the release notes</a>.  </LI>
    <A href ="">SpringSource Tool Suite</A> lead Martin Lippert has announced the <a href="http…

SpringSource Tool Suite 2.8.1 released

Releases | Martin Lippert | November 24, 2011 | ...

The SpringSource Tool Suite team is pleased to announce the new release 2.8.1 of the SpringSource Tool Suite (STS).

STS 2.8.1 is now compatible with the new Maven Integration as well as the old one. So updating your existing STS 2.7 or 2.8 version to STS 2.8.1 doesn't force you to also update the Maven Integration. Instead you can switch to the new Maven integration whenever you want - and even switch back to the old integration, if the new one doesn't work out for you. We automate this up- and downgrading of the Maven Integration as much as possible with two new items on the Dashboard. Please find more details in the New & Noteworthy and the updated m2e FAQ forum post.

The ready-to-use packages contain the new m2e 1.0 version, but you can easily switch them back to m2eclipse 0.12 using the Dashboard items, if you like.

Detailed installation instructions are also available. As always downloads are available from the STS download page.


Spring Roo 1.2.0.RC1 released

Engineering | Alan Stewart | November 24, 2011 | ...

The Spring Roo team is delighted to announce the availability of 1.2.0 Release Candidate 1. The Roo 1.2.0.RC1 release follows on from M1 and includes two exciting new features:

  • Multi-module Maven project support. This is the Roo community's most popular and most voted for feature (ROO-120). You can now create projects with a parent POM and as many project modules as you wish. For example, you can put your domain model in one module and separate out your UI code such as MVC or GWT, into their own modules.  Full documentation on this feature will be available in the general availability release of Roo 1.2.0 later this year.
  • JSF 2.0/PrimeFaces 3. The second most popular community feature and most asked for feature in the recent Roo survey - JSF 2.0/PrimeFaces support (ROO-516). You can now scaffold high-quality JSF applications utilizing the stunning components from the PrimeFaces 3.0 component library. Full round-tripping of code, switching between JSF 2.0 implementations (Oracle Mojarra or Apache MyFaces), and PrimeFaces theme selection via a Roo command are supported.

We have also enhanced our Roo annotations to give you more flexibility over the way you configure your persistence layer:

  • No need to have the "Active Record"-pattern persistence code in your domain objects any longer. The new @RooJpaEntity annotation ensures only the @Entity, @Id, and @Version fields and methods are created and maintained by Roo, with no CRUD methods. Classes annotated with @RooJpaEntity are intended to be used with Roo's JPA repository and service layering features.
  • The old @RooEntity annotation has been renamed to @RooJpaActiveRecord and is still the default when creating entities and will introduce the same CRUD methods as before.
  • Use RC1 in existing Roo projects? - easy, simply rename your @RooEntity annotations to @RooJpaActiveRecord and use the organize imports feature in STS or Eclipse to resolve the imports.
Please remember this is a release candidate release, so you should keep using Roo 1.1.5 for production projects. However, we encourage you to test this new release as we want to get 1.2.0.RELEASE to you as soon as possible.

We hope you enjoy this new release. Please share your experiences via the community forum, follow @SpringRoo for the latest news, or use #springroo in your tweets

Alan Stewart, Project Lead - Spring Roo

Get the Spring newsletter

Thank you!

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Spring Runtime offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all