File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes To Chris Richardson : Give us some details of your book Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "To Chris Richardson : Give us some details of your book" Watch "To Chris Richardson : Give us some details of your book" New topic

To Chris Richardson : Give us some details of your book

Hemant Agarwal
Ranch Hand

Joined: Nov 21, 2005
Posts: 138
Hi Chris,
Welcome to Javaranch.
Tell us in detail about your book "POJO's In Action".
What does this book has for us?
What does the book contains? We want to know a brief summary about your book


[ January 24, 2006: Message edited by: Hemant Agarwal ]
[ January 24, 2006: Message edited by: Hemant Agarwal ]
Aaron VanWieren

Joined: Jan 18, 2006
Posts: 5
I would like to hear more about what the book has to offer. As a java developer, what distinguishes this book as being something I should read and how will it aide in learning something new?
Curtis Brown

Joined: Jan 10, 2006
Posts: 20

I'm new on the Java scene..... fundamentally, I'm still really at the "Hello World" stage with Java. In tandem, I'm also focusing on the OO paradigm (i.e. Arthur J. Riel's Object-Oriented Design Heuristics) and "extreme programming" concepts.

Where does your book fit into my "curriculum"?

Chris Richardson
Ranch Hand

Joined: Jan 10, 2006
Posts: 50
POJOs in Action is about how to use POJOs and lightweight frameworks to build applications that are testable and maintainable. It weaves together several key ideas including test-driven development, object-oriented design and separation of concerns. Another important theme is that every design approach and framework has both benefits, and drawbacks and that it�s important to know when and when not to use it.

After introducing the concept of POJOs and lightweight frameworks, this book breaks the problem of designing the backend of an enterprise Java application into the following sub-problems:
* How to organize the business logic � procedural design versus domain model/object-oriented design
* How to encapsulate the business logic � session fa�ade versus POJO fa�ade versus exposed domain model
* How to access the database � JDBC versus iBATIS versus ORM (JDO/Hibernate/EJB3)
* How to handle database concurrency � optimistic locking versus pessimistic locking, serializable transactions
* How to handle long term concurrency � optimistic offline locking versus pessimistic offline locking

The rest of the book then explores each of those design options and their respective benefits and drawbacks.

For example, part two of the book looks at one particular combination of design options:
* Business logic organized using a domain model
* Domain model persisted using Hibernate and JDO
* Business encapsulated by POJO fa�ade that uses Spring for transaction management

Part three looks at different design options including:
* Using a procedural design that uses iBATIS to access to access the database
* Using EJB3 instead of Spring/Hibernate/JDO.

Part 4 covers the various concurrency options including optimistic locking and how to implement edit-style use cases using detached objects.

Throughout the book there is a big emphasis on testing. For example, it contains examples of how to test a domain model in isolation using mock objects and describes strategies for effectively testing a persistence layer.

I hope this gives a flavor of what the book is about.


Enterprise Java consulting and training - <a href="" target="_blank" rel="nofollow"></a> Author, POJOs in Action - <a href="" target="_blank" rel="nofollow"></a> Enterprise POJOs blog - <a href="" target="_blank" rel="nofollow"></a>
Aaron VanWieren

Joined: Jan 18, 2006
Posts: 5
I am currently studying system development and it sounds like this book would add greatly to what we are studying. We are looking heavily at framework and portal development.

From what I can gather, this would be a great follow up to our course readings, after all the uml to code stuff!
I agree. Here's the link:
subject: To Chris Richardson : Give us some details of your book
jQuery in Action, 3rd edition