2

What is the difference between IS EMPTY and IS NULL in JPQL?

Is it about empty strings or something else?

gprathour
  • 13,193
  • 5
  • 56
  • 85
user3565261
  • 324
  • 1
  • 5
  • 17

1 Answers1

4

IS NULL is used for NULL comparison. IS EMPTY is used for collection comparison.

What you probably want to know is the difference between NULL and empty string. Have a look at this answer.

Community
  • 1
  • 1
ForguesR
  • 3,323
  • 1
  • 14
  • 32