O'Reilly logo

Spring Roo in Action by Ken Rimple, Srini Penchikala. Foreword by Ben Alex.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Database persistence with entities

 

This chapter covers
  • Your business objects and persistence
  • Working with entities
  • What about validation?
  • Searching with finders

 

In the last chapter, we discussed Spring Roo from a developer’s perspective. We discussed the various component types, and how the Roo shell creates and maintains objects in your projects, hiding tedious, repetitive code behind AspectJdriven.aj files.

In this chapter, you’ll learn how to store and load data from relational databases. You’ll start by defining object-relational mapping (ORM) APIs and the standard Java Persistence API, and then learn how to configure persistence in a project using the Roo shell. Next, you’ll define Roo entities, which are an enhanced ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required