O'Reilly logo
  • Gangadhara Melukote thinks this is interesting:

If the entity that we try to refresh is not managed, an IllegalArgumentException exception will be thrown.

From

Cover of Pro JPA 2, Second Edition

Note

If the entity that we try to refresh is not managed, an IllegalArgumentException exception will be thrown.