@Transient 注解 实体类中使用了@Table注解后,想要添加表中不存在的字段,就要使用@Transient这个注解了。 使用 @Transient 表示该属性并非是一个要映射到数据库表中的字段,只是起辅助作用.