One to many association

I created a blank orm persistent class. when i right click and select Java round trip - generate code, i get an error message

[01:27:14] [Warning] There is no class model available for code generation (1 classes are ignored).

what does that mean

Hello Merchant,

Thank you for your message. I’m sorry that the ORM code generation and Java round-trip are two different features. Class with ORM Persistable stereotype is only for ORM code generation, which need to trigger from ORM menu (Tools > ORM > Code generation). The Java round-trip only for round-trip engineering on normal Java classes.

After you define the class model, you should synchronize the class diagram to ERD before generate ORM. You can reference to the following tutorial on how to synchronize class diagram to ERD, and generate ORM classes.

Synchronize Class Diagram to ERD

Generate ORM classes from ER Model

Feel free to contact me if you require any further information.

Best regards,