19 July 2023

What's new in JPA Buddy 2023.3

We're thrilled to announce the summer release of JPA Buddy! The latest version comes with several exciting features and improvements. Here are the highlights:

  1. Custom naming strategies are now supported.
  2. You can now create Blaze Persistence Entity Views and Spring Data JPA repositories for them.
  3. JPA Buddy now supports the Hibernate Envers module.
  4. Numerous stability improvements and bug fixes have been implemented.

Check out this article for more details!

Blaze Persistence Support

Blaze Persistence is a Java library that makes working with databases easier and improves performance. One of its notable features is Entity Views. JPA Buddy can now create Entity Views for any JPA entity using a familiar wizard.

Blaze Persistence seamlessly integrates with Spring Data JPA repositories. JPA Buddy is aware of this and allows you to create repositories for any Entity Views. See how Entity Views, together with Spring Data JPA repositories, can help reduce the load on your database:

JPA Buddy can synchronize field names between entities and any type of DTOs. It can do the same with Entity Views. It's especially great that refactoring also changes values inside the @Mapping annotation!

Hibernate Envers Support

Hibernate Envers is a module that allows you to effortlessly track and manage changes made to your data over time. In the past few releases, JPA Buddy detected audit-related tables and didn't suggest deleting them during the diff script generation. Starting with this release, the support can be called finished!

In addition to generating scripts for audit tables, JPA Buddy can now help you to create a Revision Entity along with the listener, adds the @Audited annotation through JPA Designer, and can read settings for the Envers module from .properties files. It also allows you to specify the required settings manually if needed. Check out all of this in the following video!

Custom Naming Strategy Support

Naming strategies in Spring are crucial for defining the names of database objects like tables, columns, and constraints. By default, Spring provides several physical naming strategies out of the box. They automatically generate names based on conventions like snake case or camel case. However, what if you have specific requirements and need a more customized approach? That's where a custom naming strategy comes in. JPA Buddy now allows you to use your custom naming strategy for database migration scripts generation and reverse engineering! Check it out:

Using Spring Data JPA, Hibernate or EclipseLink and code in IntelliJ IDEA? Make sure you are ultimately productive with the JPA Buddy plugin!

It will always give you a valuable hint and even generate the desired piece of code for you: JPA entities and Spring Data repositories, Liquibase changelogs and Flyway migrations, DTOs and MapStruct mappers and even more!

Conclusion

While this article covers a few improvements, there are many others to look out for, such as better support for the @ToString annotation from Lombok and availability for IntelliJ IDEA 2023.2. You can find over 25 more updates in our issue tracker.

As always, we are happy to receive your feedback and ideas on our Discord channel. Follow us on Twitter to stay updated with the latest news about JPA Buddy and get helpful JPA tips!