Is it OK to have a public final instance field in a JPA Entity if that field is not intended to be persisted (@Transient, etc)?

后端 未结 0 1788
醉梦人生
醉梦人生 2020-12-15 02:28

As I read JPA 2.1 specification it looks like all instance fields shall be public, regardless of whether they shall be persisted to the database or not.

For final, is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题