Tag Hibernate

Building a Multi-Tenant Database Architecture with Java and Hibernate/JPA

This article provides a comprehensive guide to implementing a multi-tenant database architecture using Java and Hibernate/JPA. It covers critical aspects like data isolation, scalability, security and performance optimization, outlining architectural patterns, best practices and trade-offs. The goal is to equip developers with the knowledge to build robust, efficient and maintainable multi-tenant applications.

Simplifying Default Enum Values in Hibernate Classes

Using Hibernate, you can set default enum values within embedded classes for Java applications. For example, by setting Status.ACTIVE as a default value in an EmbeddedEntity constructor, Hibernate ensures that when this embedded class is part of an entity like YourEntity, it initializes with the default value. Check out the full article to see how it’s done.