Essential object-relational mapping in JPA

4 August 2011

The Java Persistence API is the standard framework for persistence in both Java SE and Java EE platforms. It is the outcome of the collaborative work of the industry’s leading vendors in object-relational mapping, EJB and JDO, including a remarkable contribution from the open source community.

In this post we summarize, one-by-one, the essential relationships between entities. We examine each relationship from the prespectives of “Domain Model” and “Relation Model”, and provide the associated construction in JPA. Finally, for each relationship we present an example from the real world.

Click here to read more…


Java Web Services with simple types

30 July 2010

In the previous post we created a simple Web Service in Java. Now we’ll build on it, by providing more methods with standard argument and return types.

  • String
  • Number
  • Boolean
  • Array
  • Variable arguments

Click here to read more…


A simple Web Service

13 March 2010

We are about to create a simple Web Service in Java. The only requirement is Java SE 6.

Click here to read more…


JAXB in 3 minutes

11 March 2010

JAXB is a handy technology that easily transforms Java objects to XML documents and vice versa.

Click here to read more…


Easy JDBC using Spring

29 August 2009

Spring has a well-written module for JDBC. We’ll use it to produce clean code for our application in 10 minutes.

Click here to read more…


Free SCWCD Mock Exam for EL

24 August 2009

This practice exam focuses on EL. For those using Head First Servlets and JSP, 2nd Edition it provides a lot of practice for the last part of chapter 8.

Click here to read more…


Free SCWCD Mock Exam for JSPs

22 August 2009

This practice exam focuses on Java Server Pages.

Java Server Pages is the technology that changed the world of Web Applications. Developed on the robustness of Servlets, JSPs are the key component of the modern Web frameworks and the basis of promising new technologies like JSF.

This free practice material consists of 71 originally created questions. For those using Head First Servlets and JSP, 2nd Edition it’s a perfect companion for chapters 7-8.

Click here to read more…