State Stored Aggregates with embedded H2

I’m not able to post the question here : https://stackoverflow.com/questions/65033487/axon-state-stored-aggregates-exception-in-test

Any insights?

Hello and welcome @rohitdev !

Posting questions on StackOverlow is fine too. No worries about that.

But if you don’t mind me asking, why were you unable to post it here? Did you face any issues with the system? If so please let me know. It can be in private message if you prefer. I just want to make sure the discussion platform works well for all users.

I guess i had @ symbols in the code and the error before posting showed i cant tag more than 2 users.

Oh I see.

That should be easily solvable by marking the corresponding text as code block.
The best way is to use a ``` block which also allows you to specify the language for syntax highlighting.

For example this

```java
    @Aggregate(repository = "ARepository")
    @Entity
    @DynamicUpdate
    @Table(name = "A")
    @Getter
    @Setter
    @NoArgsConstructor
    @EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = false)
    @Log4j2
    class A implements Serializable {

      @CommandHandler
      public void handle(final Command1 c1) {
        ....
      }
      ....
    }
```

would result in

    @Aggregate(repository = "ARepository")
    @Entity
    @DynamicUpdate
    @Table(name = "A")
    @Getter
    @Setter
    @NoArgsConstructor
    @EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = false)
    @Log4j2
    class A implements Serializable {

      @CommandHandler
      public void handle(final Command1 c1) {
        ....
      }
      ....
    }

I hope this helps with your future posts.