JPA 2.1 and Table Inheritance

Newly I came across a little problem with JPA 2.0 and table inheritance: what if we have a base entity and extend it to some other subclasses and use inheritance strategies? Does it work out of the box or do we need some configuration?

Well, in this article I’ll take a look at this problem with the Hibernate JPA 2.1 implementation.

Continue reading

Java Persistence Api Annotation Cheat Sheet

I learned in my years as a software developer that I learn things then better if I try them, create a short application with them. Or I write about them a blog article.

Now I encountered a project where we use JPA2.0 (implementation by Hibernate but this is mostly out of the question) and I need some information about the used annotations — and especially their optional parameters and default values.

Continue reading