xpam.pl

Tag: jpa

  • Can JPA @Version column be nullable?

    When using @Version with yor JPA entities you might be wondering, should you make the column nullable or not? There is no answer to this question in the documentation or the internet in general. The only way to find out was to test it. The answer is: column has to be not-null, at least for…