Learn how @IterableMapping provides granular control over collection mapping.
Also find me here:
Baeldung Author
Abderrahim Azhrioun
Full Stack Developer, Java Geek, Spring Lover, and a Blogger. I believe coding should be fun and accessible to everyone ;)
Here's what I've written (so far):
Baeldung on Java
- All
- Java Dates (9)
- Java String (8)
- JPA (7)
- Java IO (6)
- Spring Boot (4)
- Persistence (4)
- Spring Data (3)
- Java List (3)
- Jackson (3)
- Spring Web (2)
- Spring MVC (2)
- Java Streams (2)
- Java Collections (2)
- Java (2)
- Core Java (2)
- Spring Persistence (1)
- REST (1)
- Java Map (1)
- Java Array (1)
- JSON (1)
- HTTP Client-Side (1)
Solving Hibernate SyntaxException: token ‘*’, no viable alternative at input
Filed under JPA
Learn about the token ‘*’, no viable alternative at input SyntaxException when using Hibernate and understand how to correct it.
Fixing HibernateException: Illegal Attempt to Associate a Collection With Two Open Sessions
Filed under JPA
Examine the root cause of the Hibernate Exception: “Illegal attempt to associate a collection with two open sessions.” and how to fix it.
Fixing Hibernate AnnotationException: Field Is a @ManyToOne Association and May Not Use @Column
Filed under Persistence
When using Hibernate, we can run into the Hibernate exception: “AnnotationException: field is a @ManyToOne association and may not use @Column to specify column mappings (use @JoinColumn instead)”. Let’s explore the root cause behind the exception and how to address it.
Fixing Hibernate’s DuplicateMappingException When a Column Is Duplicated for an Entity
Filed under JPA
How to fix the Hibernate exception “DuplicateMappingException: Column is duplicated in mapping for entity”. What’s the main cause? Let’s reproduce and solve it.
Fixing Hibernate QueryParameterException: No Argument for Ordinal Parameter
Filed under Persistence
Hibernate exceptions can be confusing at times, and interpreting them correctly leads to a quicker resolution of the problem. Read here about QueryParameterException “No Argument for Ordinal Parameter”; its causes and solutions.
Fix the JsonMappingException: Can not deserialize instance of java.util.HashMap out of START_ARRAY token
Filed under Jackson
Ever encountered this cryptic error while working with Jackson? This article sheds light on its root cause and provides practical solutions. Learn how to effectively handle JSON arrays and avoid common pitfalls when deserializing into Java objects.
@MapsId Annotation in Hibernate
Filed under JPA
Learn how to use the Hibernate annotation @MapsId to implement the shared primary key strategy.
Iterate over a Guava Multimap
Filed under Java Collections
Learn more about Guave Multimap implementation in Java