Polishing.
Add missing deprecation annotation. Fix since tags. See #1053 Original pull request: #1060.
This commit is contained in:
@@ -114,6 +114,7 @@ public class AbstractRelationalEventListener<E> implements ApplicationListener<A
|
||||
* @param event will never be {@literal null}.
|
||||
* @deprecated use {@link #onAfterConvert(AfterConvertEvent)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
protected void onAfterLoad(AfterLoadEvent<E> event) {
|
||||
|
||||
if (LOG.isDebugEnabled()) {
|
||||
@@ -125,6 +126,7 @@ public class AbstractRelationalEventListener<E> implements ApplicationListener<A
|
||||
* Captures {@link AfterConvertEvent}.
|
||||
*
|
||||
* @param event will never be {@literal null}.
|
||||
* @since 2.3
|
||||
*/
|
||||
protected void onAfterConvert(AfterConvertEvent<E> event) {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2019-2021 the original author or authors.
|
||||
* Copyright 2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,7 +21,7 @@ import org.springframework.data.mapping.callback.EntityCallback;
|
||||
* An {@link EntityCallback} that gets invoked after an aggregate was converted from the database into an entity.
|
||||
*
|
||||
* @author Jens Schauder
|
||||
* @since 2.6
|
||||
* @since 2.3
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface AfterConvertCallback<T> extends EntityCallback<T> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2017-2021 the original author or authors.
|
||||
* Copyright 2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,11 +16,11 @@
|
||||
package org.springframework.data.relational.core.mapping.event;
|
||||
|
||||
/**
|
||||
* Gets published after instantiation and setting of all the properties of an entity. This allows to do some
|
||||
* postprocessing of entities if the entities are mutable. For immutable entities use {@link AfterConvertCallback}.
|
||||
* Gets published after instantiation and setting of all the properties of an entity. If you want to mutate an entity
|
||||
* after loading, use {@link AfterConvertCallback}.
|
||||
*
|
||||
* @author Jens Schauder
|
||||
* @since 2.6
|
||||
* @since 2.3
|
||||
*/
|
||||
public class AfterConvertEvent<E> extends RelationalEventWithEntity<E> {
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
package org.springframework.data.relational.core.mapping.event;
|
||||
|
||||
/**
|
||||
* Gets published after instantiation and setting of all the properties of an entity. This allows to do some
|
||||
* postprocessing of entities if the entities are mutable. For immutable entities use {@link AfterLoadCallback}.
|
||||
* Gets published after instantiation and setting of all the properties of an entity. If you want to mutate an entity
|
||||
* after loading, use {@link AfterConvertCallback}.
|
||||
*
|
||||
* @author Jens Schauder
|
||||
* @deprecated Use {@link AfterConvertEvent} instead.
|
||||
|
||||
Reference in New Issue
Block a user