@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface PersistenceId
PlayerService
的持久化 ID。
该 ID 值将用于播放器状态的持久化,不能为空,并且请保证其全局唯一性。
例:
@PersistenceId("YourPersistenceId")
public class MyPlayerService extends PlayerService {
...
}
限定符和类型 | 可选元素和说明 |
---|---|
java.lang.String |
value |