Year: 2015
-
Enterprise Java
JPA 2.1 criteria delete/update and temporary tables in Hibernate
Since JPA version 2.0 the EntityManager offers the method getCriteriaBuilder() to dynamically build select queries without the need of string…
Read More » -
Desktop Java
JavaFX Tip 18: Path Clipping
I recently noticed that the PopOver control, which I committed to the ControlsFX project, does not properly clip its content.…
Read More » -
Core Java
Thou Shalt Not Name Thy Method “Equals”
(unless you really override Object.equals(), of course). I’ve stumbled upon a rather curious Stack Overflow question by user Frank: Why…
Read More » -
Core Java
Using junit for something else
junit != unit test Junit is the Java unit testing framework. We use it for unit testing usually, but many…
Read More » -
Core Java
Java 8 pitfall – Beware of Files.lines()
There’s a really nice new feature in Java8 which allows you to get a stream of Strings from a file…
Read More » -
Enterprise Java
Calculate PageRanks with Apache Hadoop
Currently I am following the Coursera training ‘Mining Massive Datasets‘. I have been interested in MapReduce and Apache Hadoop for…
Read More » -
Enterprise Java
Database Migrations in Java EE using Flyway
Database schema of any Java EE application evolves along with business logic. This makes database migrations an important of any…
Read More » -
Software Development
TDD Against the Clock
A couple of weeks ago I ran a “TDD Against the Clock” session. The format is simple: working in pairs…
Read More » -
Core Java
Determining File Types in Java
Programmatically determining the type of a file can be surprisingly tricky and there have been many content-based file identification approaches…
Read More »