---
title: "Discussion on \"JPA Criteria: Invalid SQL with IN predicate\" | Hashnode"
description: "Discussion on \"JPA Criteria: Invalid SQL with IN predicate\". JPA Criteria is awesome when you need to compose complex queries from multiple blocks, but it can cause a lot of troubles when the underlying SQL code fails to check some obvious scenarios.\nThe concept\nWhen dealing with Java Lists, we can almost alwa..."
url: "https://hashnode.com/posts/jpa-criteria-invalid-sql-with-in-predicate/62f11a4ec1e76d621b3f7744"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JPA Criteria: Invalid SQL with IN predicate](https://marceloresende.dev/jpa-criteria-invalid-sql-with-in-predicate?utm_source=hashnode&utm_medium=feed)

JPA Criteria is awesome when you need to compose complex queries from multiple blocks, but it can cause a lot of troubles when the underlying SQL code fails to check some obvious scenarios. The concept When dealing with Java Lists, we can almost alwa...

Sep 11, 2017 · 4 min read · marceloresende.dev  
Updated Oct 28, 2023  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#jpa](https://hashnode.com/tag/jpa)
-   [#hibernate](https://hashnode.com/tag/hibernate)
-   [#criteria](https://hashnode.com/tag/criteria)

## Written by

[Marcelo Paixão Resende](https://hashnode.com/@marcelopaixaoresende)

@marcelopaixaoresende · Uberlândia, Minas Gerais, Braz

  
[View profile](https://hashnode.com/@marcelopaixaoresende)

Software Developer @ Callink

My name is Marcelo and I'm a software developer currently living in Uberlândia, Brazil. I've been developing software for fun since i was fifteen. A few years later, I realized that programming was something that I already had been doing with a quality that could be used professionally, and then I started working in the industry. Javascript &lt;3

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
