Articles, Home

Enforcing Java Record Invariants With Bean Validation

Record types are one of the most awaited features in Java 14; they promise to “provide a compact syntax for declaring classes which are transparent holders for shallowly immutable data”. One example where records should be beneficial are data transfer objects (DTOs), as e.g. found in the remoting layer of enterprise applications. Typically, certain rules should be applied to the attributes of such DTO, e.g. in terms of allowed values. The goal of this blog post is to explore how such invariants can be enforced on record types, using annotation-based constraints as provided by the Bean Validation API.

Articles, Home

Use Cases

The Payara Platform is in Use by Industries Worldwide. Learn about our industry use cases including: Automotive, Insurance, Telco, Finance and many more.

Articles, Home

Java on Visual Studio Code Update – January 2020 | Java at Microsoft

In this update, we’re introducing the long-waited “Call Hierarchy” support along with some Visual Studio Code UI updates which will benefit Java developers a lot. At the same time, new features are also introduced to Debugger and Test Runner. We will also share some other improvements including performance in this post.