On Java Development

All things related to Java development, from the perspective of a caveman.

Archive for the ‘Idioms’ Category

Hibernate Transaction Coding Idiom

without comments

Introduction

This post shows the suggested form of a Hibernate transaction constructed using a try/catch/finally block.
Read the rest of this entry »

Written by admin

April 3rd, 2014 at 6:48 pm

Posted in Hibernate,Idioms

Singleton Design Pattern

without comments

Probably the simplest of design patterns, the so-called Singleton ensures one single instance of a class exists. The method presented is guaranteed to execute only once ensuring there is only one instance created (and is thread-safe).
Read the rest of this entry »

Written by admin

January 6th, 2014 at 8:10 pm