insert pojo会触发@Prev,实现如下的createAt自动赋值
@Column("createAt")
@Prev(els = @EL("now()"))
private Date createAt;
但多对多的关系,insertWith的时候,如何为插入到中间表org_user_position,自动为createAt赋值?
@Table("org_position")
public class Position {
@Name
private String name;
@ManyMany(relation = "org_user_position", from = "positionId", to = "userId")
private List<User> users;
}