mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-16261 - Not ignoring JDK 14 records when processing
This commit is contained in:
parent
d8dfa709da
commit
17fb2b9436
@ -223,7 +223,7 @@ private boolean isJPAEntity(Element element) {
|
||||
private void handleRootElementAnnotationMirrors(final Element element) {
|
||||
List<? extends AnnotationMirror> annotationMirrors = element.getAnnotationMirrors();
|
||||
for ( AnnotationMirror mirror : annotationMirrors ) {
|
||||
if ( !ElementKind.CLASS.equals( element.getKind() ) ) {
|
||||
if ( !ElementKind.CLASS.equals( element.getKind() ) && !ElementKind.RECORD.equals( element.getKind() ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -316,7 +316,7 @@ public Boolean visitDeclared(DeclaredType declaredType, Element element) {
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
if ( ElementKind.CLASS.equals( element.getKind() ) || ElementKind.INTERFACE.equals( element.getKind() ) ) {
|
||||
if ( ElementKind.CLASS.equals( element.getKind() ) || ElementKind.INTERFACE.equals( element.getKind() ) || ElementKind.RECORD.equals( element.getKind() ) ) {
|
||||
TypeElement typeElement = ( (TypeElement) element );
|
||||
String typeName = typeElement.getQualifiedName().toString();
|
||||
if ( Constants.BASIC_TYPES.contains( typeName ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user