holixon / axon-cdi

CDI Extension to use AxonFramework 3.x in Container Environments
Apache License 2.0
4 stars 1 forks source link

java.lang.IllegalArgumentException: Unknown entity #13

Closed zambrovski closed 6 years ago

zambrovski commented 6 years ago

I'm getting this with TxAwareJPAEventStorageEngine:

java.lang.IllegalArgumentException: Unknown entity: org.axonframework.eventsourcing.eventstore.jpa.DomainEventEntry

Are these related I wonder?

zambrovski commented 6 years ago

If you are using EventSourcing, please remember to put the following code into your persistence.xml:

    <class>org.axonframework.eventsourcing.eventstore.jpa.DomainEventEntry</class>
    <class>org.axonframework.eventsourcing.eventstore.jpa.SnapshotEventEntry</class>
    <class>org.axonframework.eventhandling.saga.repository.jpa.AssociationValueEntry</class>
    <class>org.axonframework.eventhandling.saga.repository.jpa.SagaEntry</class>
    <properties>
      <property name="hibernate.hbm2ddl.auto" value="update"/>
    </properties>
alexmacavei commented 6 years ago

My example is finally working! Thanks for all the help. Example is here: https://github.com/alexmacavei/cqrs-example

jangalinski commented 6 years ago

@alexmacavei that's cool. cloned it and at least I can built it. How do I use it? Are you planning to move this to the axon-cdi/example area?

alexmacavei commented 6 years ago

Sure will do :) You "mvn clean package" and then "java -jar target/cqrs-example-swarm.jar"

Pe 10 ian. 2018 11:28, "Jan Galinski" notifications@github.com a scris:

@alexmacavei https://github.com/alexmacavei that's cool. cloned it and at least I can built it. How do I use it? Are you planning to move this to the axon-cdi/example area?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/holisticon/axon-cdi/issues/13#issuecomment-356548135, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ_PRVqXUFuVANB-m4gHHCqF8SZMKtxBks5tJILBgaJpZM4RYaEI .