Giải thích các annotation trong Hibernate (code ví dụ)
Giải thích các annotation trong Hibernate (code ví dụ) Các annotation trong hibernate @Version @CreationTimestamp và @UpdateTimestamp @NamedQuery, @NameQueries @PrePersist, @PostPersist, @PostLoad, @PreUpdate, @PostUpdate, @PreRemove, @PostRemove: @Version @Entity @Table(name = “customer”) public class Customer implements Serializable{ @Version @Column(name = “version”) private int version; //… } Annotation @Version được dùng để đánh dấu column lưu trữ version của bản ghi Read more about Giải thích các annotation trong Hibernate (code ví dụ)[…]