Closed Boerrild closed 3 years ago
Btw, the above code-snippets was created by an earlier version of Xoom Starter (1.4.?-snapshot), but I'm experiencing the same issue with code build from Xoom Starter 1.5.1-snapshot.
@Boerrild Yes you are correct. We dug in and found this. It's assigned an will be fixed asap.
As a temporary workaround, regenerate without annotations. You will get the correct code. You can then copy that code and paste that into your annotated project.
I'm not sure if it is due to a misconfiguration from my part or an error in the code generator, but when I use the persistence annotation with journal storage type, then the generated CommandModelEntityProvider does not contain a section that registers a new Info with the entity class, like this:
I've used the Xoom Starter to generate a system with a single entity, called "Journal", and with Xoom annotations enabled. If i disable annotations, Xoom Starter generates the class, and in that case, it contains the registration-part.
This is how the xoom-generated code looks (when xoom annotations are enabled):
This is how it looks when pre-build by xoom-starter: