~/devreads

#hypersistence utils

4 posts

11 Jul 2023

vladmihalcea 1 min read

Introduction In this article, we are going to see how to customize the HibernateTypesContributor from Hypersistence Utils so that we can disable all or filter out certain Types. What does HibernateTypesContributor does in Hypersistence Utils The HibernateTypesContributor implements the TypeContributor Hibernate interface and registers several Types automatically. By doing this, the audited entities will be able to locate the Hypersistence…

hibernatehypersistence utilstype

16 Feb 2023

vladmihalcea 1 min read

Introduction In this article, I will show you the best way to generate a TSID entity identifier with JPA and Hibernate. Prior to continuing, if you are not familiar with the advantages of using compact Time-Sorted Identifiers, like TSID, check out this article first. Hypersistence Utils As promised, the Hypersistence Utils OSS library keeps on evolving, adding more and more…

hibernatehypersistence utilsidentifierjpatsid

17 Jan 2023

vladmihalcea 1 min read

Introduction In this article, I’m going to explain how you can use the BaseJpaRepository from the Hypersistence Utils OSS project as an alternative to the default Spring Data JpaRepository. The reason why I’m not using the default JpaRepository on any of my Spring projects is that it provides some terrible defaults that can be very easily misused, like: The findAll…

springbasejparepositoryhypersistence utilsjpajparepository

27 Dec 2022

vladmihalcea 1 min read

Introduction In this article, I explain why the Hibernate Types became Hypersistence Utils, and how you can migrate your old dependency to Hypersistence Utils 3.0. Hibernate Types The Hibernate Types project was first created in September 2017 with the goal of offering various Hibernate Types that were not supported natively, like support for JSON or ARRAY column types. Over the…

hibernatespringhibernate-typeshypersistencehypersistence utils