PGCon2014 - Final Release

PGCon 2014
The PostgreSQL Conference

Álvaro Hernández Tortosa
Day Tutorials - Day 1 - Tue May 20 - 2014-05-20
Room Montpetit 201
Start time 09:00
Duration 03:00
ID 713
Event type Lecture
Track Tutorial
Language used for presentation English

Using PostgreSQL with Java

The elephant and Duke playing together

Java is one of the most used languages when programming with PostgreSQL databases. Join this tutorial to learn or review the techniques to connect to postgres, best programming practices with JDBC, and to explore MyBatis, a mapper software that allows you to use the full power of SQL and postgres advanced query features while avoiding all the boilerplate code. This tutorial is very practical: most of the time will be dedicated to iterate through code samples.

This tutorial will cover:

  • Introduction to Java and PostgreSQL
  • Ways of connecting to PostgreSQL from Java (not only JDBC!)
  • Introduction to JDBC. JDBC types. PostgreSQL JDBC
  • Code demo: JDBC with PostgreSQL. From Java 1.4 to Java 7, best practices and code samples
  • Code demo: MyBatis, a great mapper for PostgreSQL

About two-thirds of the tutorial will be dedicated to iterate over code samples and demos. All the code would be available from public open-source repositories and built with maven, so that any attendee may download it and build easily to play with it during the tutorial (although not required).