Explore the differences between JPA’s CAST and TREAT and look at examples to illustrate their usage.
Also find me here:
Baeldung Author
Wynn Teo
I’m Wynn, a Full-stack Developer with a 10+ years of experience. I began my journey in the tech world during my university days in Singapore, and coding has been my passion ever since. I enjoy learning, especially when it comes to all things tech. The journey of gaining knowledge is what keeps me going.
Here's what I've written (so far):
Baeldung on Java
- All
- JPA (10)
- Spring Data (6)
- Persistence (6)
- Java Concurrency (6)
- Web Services (4)
- Java Numbers (4)
- JSON (4)
- Spring Boot (3)
- Networking (3)
- Java List (3)
- Java IO (3)
- Java Array (3)
- Java (3)
- HTTP Client-Side (3)
- Core Java (3)
- Algorithms (3)
- Testing (2)
- Spring (2)
- Java String (2)
- Java Dates (2)
- Jackson (2)
- Data (2)
- Spring Cloud (1)
- Security (1)
- REST (1)
- NoSQL (1)
- Java Map (1)
- Java Collections (1)
- Cloud (1)
Sequence Naming Strategies in Hibernate 6
Filed under Persistence
Explore how to configure Hibernate 6’s implicit naming strategies for database sequences.
How to Read Text Inside Mail Body
Filed under Networking
Learn how to use the JavaMail API to connect to an email server, retrieve emails, and read the text inside the email body.
Convert a ResultSet From PostgreSQL Array to Array of Strings
Filed under Java Array, Persistence
Explore how to convert a PostgreSQL array from a ResultSet to an array of strings in Java.
How to Convert Gson JsonArray to HashMap
Explore three methods to convert a Gson JsonArray to a HashMap in Java.
Multiple Criteria in Spring Data Mongo DB Query
Filed under NoSQL, Spring Data
Explore various approaches for constructing queries with multiple criteria in Spring Data MongoDB.
Validation Using the Spring Validator Interface
Filed under Spring
Explore how to use the Validator interface to validate objects in a Spring-based application.
Guide to FileOutputStream vs. FileChannel
Filed under Java IO
Explore two file I/O methods: FileOutputStream and FileChannel.
Resolving PostgreSQL JSON Type Mismatch Errors in JPA
Explore how to address the PSQLException error “column is of type json but the expression is of type character varying” that arises when using JPA to map Java objects to PostgreSQL JSON columns.