Slides of the tutorial presented at 2014's pgcon (http://www.pgcon.org/2014/schedule/events/713.en.html).
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. The presentation is very practical: most of the time will be dedicated to iterate through code samples.
This presentation covers:
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 8, best practices and code samples
Code demo: MyBatis, a great mapper for PostgreSQL
Code demo: jOOQ, get back control of your SQL
All the source code used for the demos is available at github: https://github.com/8kdata/javapostgres