In this article, I’m going to show you how to get the current database transaction id. The transaction id is very useful for logging, especially if you want to correlate multiple log entries that are executed within the context of the same database transaction.
hibernate-types project allows you to map a great variety of database types that are not supported natively by Hibernate ORM (e.g. JSON, ARRAY,
Month, INET addresses).
In this article, we are going to see how you can map a PostgreSQL HStore type, which allows you to store key/value pairs, to a Java
Map entity property when using JPA and Hibernate.
hibernate-types project allows you to map JSON, ARRAY,
Month or database-specific columns (e.g. INET addresses).
In this article, we are going to see how you can map a PostgreSQL Enum ARRAY type to a Java array entity property when using JPA and Hibernate.
In this article, we are going to see how the Hibernate event listeners work and how you add your custom listeners to intercept entity changes and replicate them to other database tables.
Recently, one of my blog readers asked a very good question on StackOverflow.
@vlad_mihalcea hi! I'm a regular reader of your tweets & blogs, and have a problem I'd really appreciate if you could cast your eyes over! Very much appreciated 🙂— Mitch Kent (@mbot_spud) December 11, 2018
Rename a table in a backwards compatible way using JPA and Postgres (i.e. duplicate/alias)https://t.co/4uLvBUWeoO https://t.co/52WMVBYMLp
Since my main goal as a Hibernate Developer Advocate is to help Java developers get the most out of JPA and Hibernate, I decided that this is a good opportunity to talk about the Hibernate event listener mechanism.