Skip to content

Add Spring Data Jsr310JpaConverters (JDK8 dates) automatically to @EntityScan if applicable #2721

@marceloverdijk

Description

@marceloverdijk

With latest Spring Data 1.8 (Fowler) release, Spring Data provides convenient JDK8 data converters via org.springframework.data.jpa.convert.threeten.Jsr310JpaConverters.

To apply these automatically I have to to add the following to a configuration class:

@EntityScan(basePackageClasses = {Application.class, Jsr310JpaConverters.class})

It would be very nice if Spring Boot could add these Jsr310JpaConverters.class automatically to the entity scan process. Just like it would add the Application.class automatically if I would not provide the @EntityScan annotation.

Of course this should only be done if applicable; e.g. using JDK8 and Spring Data JPA.

Depends on: #2721

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions