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.
我知道@Transient 字段值不会保留在数据库中。但是,当从查询创建实体时,字段值是否会从表中加载?(该字段存在于表中)
@Transient @Column (name = "zipcode") Integer zipcode;
不,@Transient 在存储或从数据库加载时将被完全忽略