playframework/Play20 — pull request #113 by benoit-ponsero (2012-02-09 14:35:02+00:00)
Title: allow @PrePersist, @PostPersist annotation in models

based on BeanPersistAdapter.

exemple:

@Entity
public class MySuperModel extends Model {

public String name;

@PrePersist
public void prePersist(){
// insert code here
}

}