[SPR-10799] Add support for discovering JPA 2.1 @Converter during scanning Created: 31/Jul/13 Updated: 15/Jan/19 Resolved: 02/Aug/13
|Fix Version/s:||4.0 M3|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Days since last comment:||1 year, 30 weeks, 3 days ago|
|Last commented by a User:||true|
JPA 2.1 spec permits registering of converters using @Converter annotation. This works ok, at least in EclipseLink's last version. But it doesn't work with XML-free configuration using Spring. This is due to DefaultPersistenceUnitManager class, which scans specified packages looking for classes annotated with @Entity, @Embeddable and @MappedSuperclass, but not @Converter.
Just adding new AnnotationTypeFilter(Converter.class, false) to entityTypeFilters field worked for me.
|Comment by Spring Issuemaster [ 14/Jan/19 ]|