-
sql
JDBC Query Builder Tutorial
Handling SQL within a Java application can be tricky. For one thing, Java does not support multi-line string constants, so…
Read More » -
sql
JDBC Nested Transactions Example
A nested transaction is used to provide a transactional guarantee for a subset of operations performed within the scope of…
Read More » -
sql
JDBC with Oracle Thin Driver Example
Java Database Connectivity (JDBC) is a Java-based data access technology that defines how a client may access a database. It…
Read More » -
sql
JDBC ResultSetExtractor Example
Spring provides a simplification in handling database access with the Spring JDBC Template. The org.springframework.jdbc.core.ResultSetExtractor interface is a callback interface…
Read More » -
Out
Logging System.out.println Results in a Log File Example
In Java the three main streams stdin (Standard Input), stdout (Standard Output), and stderr (Standard Output Error) are handled by…
Read More » -
sql
JDBC DDL Example
Data Definition Language (DDL) is a unique set of SQL commands that lets you manipulate the structure of the database.…
Read More » -
sql
JDBC Connection Pool Example
Connection pooling is a mechanism to create and maintain a collection of JDBC connection objects. The primary objective of maintaining…
Read More » -
sql
JDBC Best Practices Tutorial
Hello, in this tutorial we will learn some Java Database Connectivity (JDBC) best practices that Java programmer should follow while…
Read More » -
hibernate
Hibernate Example Code Using Annotations
Hibernate annotations is the powerful way to provide the metadata for the Object and Relational Table mapping. All the metadata…
Read More » -
hibernate
Hibernate Example Directory Structure
In this tutorial, I will show you how to setup a Hibernate project with Eclipse. 1. Introduction Hibernate is an…
Read More »