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…


Free SCWCD Mock exams

19 March 2010

This post summarizes practice exams written for the Sun Certified Web Component Developer certification. Each one focuses on a separate objective. They should be useful from the middle stages of your preparation.

Nikos Pougounias is an Oracle Certified Professional, Java EE 5 Web Component Developer.

© 2009-2011 Nikos Pougounias. This is a free contribution to the Java and JavaRanch communities. Please distribute it for free.


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…


Free SCWCD Mock Exam for Custom Tags

9 May 2009

This practice exam focuses on Custom Tags. For those using Head First Servlets and JSP, 2nd Edition it is a perfect companion for chapter 10.

Custom Tags is the most powerful feature of the JSP technology. This free material should be useful for those preparing for the Sun Certified Web Component Developer certification.

To get basic skills before going on, you may consider this compact tutorial first.

Click here to read more…


Free SCWCD Mock Exam for Servlets

12 March 2009

This practice exam focuses on Servlets. For those using Head First Servlets and JSP, 2nd Edition it’s a perfect companion for chapters 4-6.

Click here to read more…


Java Day in Athens (14 Feb 2009)

8 February 2009

Java Hellenic User Group announces an interesting free Java event.

Click here to read more…


JavaFX Script for Java developers, Part 2

6 February 2009

Comfortable arrays

Arrays in JavaFX are easy-to-use and act more like sequences. Here’s one:

var letters = ['A', 'B', 'D'];

Let’s print it,

println(letters);

Displaying an array in JavaFX

Click here to read more…


JavaFX Script for Java developers, Part 1

25 January 2009

First touch

The main method in JavaFX is called run().

function run(args: String[]) {
    // implementation
}

Let’s print something to the output. System.out.print() is simply print() in JavaFX.

function run(args: String[]) {
    print("Hello from JavaFX!!");
}

Moreover run() is not mandatory for the developer :

Click here to read more…


Custom Tags Tutorial

24 January 2009

This tutorial presents practical skills for Custom Tags; the most powerful feature of the JSP technology. Its purpose is to be a good review for those preparing for Sun Certified Web Component Developer certification and, at the same time, a good reference at work.

  1. Skills for Tag Files
  2. Skills for Simple Tag handlers
  3. Skills for Classic Tag handlers
  4. Body manipulation of Classic Tags

Thank you.


Custom Tags 4 – Body manipulation of Classic Tags

19 January 2009

This post explains how to manipulate the body of a classic tag.

Click here to read more…


Follow

Get every new post delivered to your Inbox.