Clarify @EntityScan deprecated Javadoc

Closes gh-6340
This commit is contained in:
Phillip Webb 2016-07-07 14:15:32 -07:00
parent 17b71df2dd
commit 629ce6a527
1 changed files with 6 additions and 2 deletions

View File

@ -43,8 +43,12 @@ import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
* annotation.
*
* @author Phillip Webb
* @deprecated as of 1.4 in favor of explicit configuration or
* {@code @org.springframework.boot.autoconfigure.domain.EntityScan}
* @deprecated as of 1.4 in favor of
* {@code @org.springframework.boot.autoconfigure.domain.EntityScan} or explicit
* configuration of the {@link LocalContainerEntityManagerFactoryBean} (either
* {@link LocalContainerEntityManagerFactoryBean#setPackagesToScan(String...) directly} or
* using the {@link EntityManagerFactoryBuilder.Builder#packages(Class...)
* EntityManagerFactoryBuilder}).
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)