2

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

Is it about empty strings or something else?

gprathour
  • 14,313
  • 5
  • 60
  • 89
user3565261
  • 334
  • 1
  • 5
  • 18

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,443
  • 1
  • 15
  • 36