Learn the differences and similarities between Java 14 Records and Lombok.
Also find me here:
Baeldung Author
Emanuel Trandafir
I'm Emanuel Trandafir, a passionate Java developer eager to explore and share insights on diverse programming paradigms, tools, and practices. I actively encourage my readers to join me in meaningful discussions, allowing us to learn from each other's perspectives. Beyond work, I love staying active through sports, hiking, and traveling, and I've recently switched from long-distance running to the thrill of rock climbing.
Here's what I've written (so far):
Baeldung on Java
- All
- Testing (10)
- Architecture (8)
- Data (7)
- Spring Boot (5)
- Spring WebFlux (4)
- Reactive (4)
- Persistence (4)
- Spring Data (3)
- Spring (3)
- Maven (3)
- Java Streams (3)
- Java Concurrency (3)
- Docker (3)
- Spring AI (2)
- DevOps (2)
- Web Services (1)
- Spring Web (1)
- Java Dates (1)
- Java Collections (1)
- Java (1)
- Jakarta EE (1)
- Jackson (1)
- JSON (1)
- JPA (1)
- Core Java (1)
- Artificial Intelligence (1)
Hibernate’s “Detached Entity Passed to Persist” Error
Filed under Persistence
Explanation about detached entities, why occurs the”Detached Entity Passed to Persist” error occurs and how to prevent it.
Constraint Composition with Bean Validation
Filed under Jakarta EE
Learn how to group multiple constraints under a single, custom annotation to reduce code duplication and improve readability
Joining Tables With Spring Data JPA Specifications
Filed under Spring Data
Learn how to use JPA Specifications to query a table based on one of its associated entities.
Hibernate’s “Not-Null Property References a Null or Transient Value” Error
Filed under Persistence
Learn about Hibernate’s PropertyValueException. In particular, the “not-null property references a null or transient value” error message.
Distinct Queries in HQL
Filed under JPA
A quick and practical guide to distinct queries in HQL.
Subtract Days from a Date in Java
Filed under Java Dates
Explore several ways to subtract days from a date object.
Baeldung on Kotlin
- All
- Testing (1)
- Kotlin Strings (1)
- Kotlin Numbers (1)
- Kotlin Basics (1)
- Kotlin Arrays (1)
A Guide to Property-Based Testing in Kotlin
Filed under Testing
Learn about property-based testing in Kotlin.
Convert an Array to a String
Filed under Kotlin Arrays, Kotlin Strings
Learn how to convert an Array’s content to a String in Kotlin.
The ..< Operator for Open-ended Ranges in Kotlin
Filed under Kotlin Basics
Learn about the new Kotlin operator
Converting an Int? to an Int in Kotlin
Filed under Kotlin Numbers
Learn how to extract a value of a nullable variable.
Baeldung on SQL
- All
- Database Concepts (1)
Multiple Indexes vs. Multi-Column Indexes
Filed under Database Concepts
Explore database indexes, focusing on the differences between individual and composite indexes.