Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以对 jpa 1 使用 @notnull 之类的注释?如果不是,这是如何实现的?
JPA 1.0(或 2.0)没有 @notnull 注释。
JPA 1.0 在 @Column 注释上可以为空。