How to fetch a @Transient property from the database using JPA and Hibernate?

You have multiple options:

  1. You can use the @Generated annotation as explained in this article.
  2. You can use the @Formula annotation as explained in this article.
1 Like