On Java Development

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

Archive for June, 2014

JDBC Connections vs JNDI Connections

without comments

Introduction

This post describe differences between the Java Database Connection API (JDBC) and the Java Naming and Directory Interface (JNDI). These technologies are used to obtain database connections.
Read the rest of this entry »

Written by admin

June 8th, 2014 at 11:16 am

Using Hibernate to Update a Record with a Composite Key

without comments

Introduction

This post shows how to use Hibernate to update a single record using a composite key. This approach differs a bit when using a file defined with a identity field, which is a little easier to update code-wise.
Read the rest of this entry »

Written by admin

June 5th, 2014 at 5:00 am

Posted in Hibernate

Using Spring to call a Stored Procedure

without comments

Introduction

This post shows how to leverage Spring to call a stored procedure to retrieve a result set or update records in a file. Spring makes the process simple enough so that the developer is focused more on the parameters to pass (if any) and calling the methods of the project’s Service and DAO layer.
Read the rest of this entry »

Written by admin

June 4th, 2014 at 4:52 am