the intermediate Repository class:

*// no annotation present!!*

public abstract class AbstractElementRepository<E extends Element, PK
extends Serializable> extends AbstractFullEntityRepository<E, PK> implements
ElementRelated {


in RepsitoryExtension: for the intermediate AbstractElementRepository class
(no Annotation!!!) Weld will find:
event.getAnnotatedType().getJavaClass(): class
at.telekom.archive.repository.AbstractElementRepository
and:
event.getAnnotatedType().getJavaClass().isAnnotationPresent(Repository.class)
== true

Help very much appreciated, else application broken!!!


Am Mo., 19. Feb. 2024 um 14:07 Uhr schrieb tandraschko (via GitHub) <
g...@apache.org>:

>
> tandraschko commented on code in PR #147:
> URL: https://github.com/apache/deltaspike/pull/147#discussion_r1494524740
>
>
> ##########
>
> deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/RepositoryExtension.java:
> ##########
> @@ -90,6 +90,11 @@ else if (isRepository(event.getAnnotatedType()))
>                  LOG.log(Level.FINER, "Class {0} is Deactivated",
> repositoryClass);
>                  return;
>              }
> +            if (repositoryClass.getDeclaredAnnotation(Repository.class)
> == null)
>
> Review Comment:
>    the outer if should already exact do this code
>
>
>
> ##########
>
> deltaspike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/RepositoryExtension.java:
> ##########
> @@ -90,6 +90,11 @@ else if (isRepository(event.getAnnotatedType()))
>                  LOG.log(Level.FINER, "Class {0} is Deactivated",
> repositoryClass);
>                  return;
>              }
> +            if (repositoryClass.getDeclaredAnnotation(Repository.class)
> == null)
>
> Review Comment:
>    the outer if should already exact do this check in #isRepository
>
>
>
> --
> This is an automated message from the Apache Git Service.
> To respond to the message, please log on to GitHub and use the
> URL above to go to the specific comment.
>
> To unsubscribe, e-mail: dev-unsubscr...@deltaspike.apache.org
>
> For queries about this service, please contact Infrastructure at:
> us...@infra.apache.org
>
>

Reply via email to