Code example for PostLoadEvent

Methods: getEntity

0
        return false; 
    } 
 
    @Override 
    public void onPostLoad(PostLoadEvent event) {
        if (event.getEntity() instanceof PersistentObject) {
            ((PersistentObject) event.getEntity()).onLoad();
        } 
    } 
 
    private static final long serialVersionUID = -2581284706244288775L;
}