PostPersist (Java EE 5)

Java EE API


javax.persistence Annotation Type PostPersist


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface PostPersist

Implements: Annotation
@Target(value=METHOD)
@Retention(value=RUNTIME)

此类用于指定相应生命周期事件的回调方法。此注释可以应用于实体类、映射的超类、回调侦听器类的方法。
英文文档:

Is used to specify callback methods for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class.

Since:
Java Persistence 1.0



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!