I am using Hibernate 4. When I use
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true,
selectBeforeUpdate = true)
it works.
But, I found that they have deprecated, so I follow the instructions to use the @DynamicInsert and @DynamicUpdate, like this:
@Entity
@DynamicInsert
@DynamicUpdate
@SelectBeforeUpdate
@Table(name = "User")
public class User {
..........
}
It does not work.
How do I use @DynamicInsert and @DynamicUpdate ?