I have problem with autodetecting annotated entities by OGM. I found the same problem in issues: OGM-818 Closed and OGM-828 Closed and they ware resolved. I've made a minimal example repository to reproduce: https://bitbucket.org/JarekW/hibernate-ogm-autodetection-issue/ steps: mvn clean package and deploy to wildfly. Comment out "<class>" declaration in persistence.xml, deploy again and you will get:
java.lang.IllegalArgumentException: Unknown entity: com.example.Article
at deployment.jpa-mongo.war at deployment.jpa-mongo.war at deployment.jpa-mongo.war at org.jboss.as.jpa@18.0.1.Final at deployment.jpa-mongo.war at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.jboss.as.ee@18.0.1.Final
|