Annotation type not applicable error in package-info in Java 8
I use SqlResultSetMappings annotations in package-info.java. This code was working in Java 6 but does not work in Java 8 as SqlResultSetMappings use Javax Persistence API.
@SqlResultSetMappings({
@SqlResultSetMapping(name = “mapping”,
columns = {
ColumnResult(name = “id”),
ColumnResult(name = “display”)
})
})
Is there a work around? Thanks