Hi,
is there any way in order to obtain best iteration?
I explain myself better:
First, I start with design phase, I define properties and method signatures. After when I start coding phase (method implementation and so on), if I change some object from UML design, after code generation, I lose my code implementation.
Sorry Jick,
I wasn’t clear. What I meant to say was “Class Diagram”.
After ORM generation code, when I write code implementation (like method body,etc), if I change something in Class Diagram and then re-generate code I lose every implementation details .
Thanks in advance…
Maurizio
[quote=Jick]Hi Maurizio,
Sorry for our late reply. What do you mean by “some object from UML design”? Do you mean LifeLine? Or Class? Or something else?
What kind of code generation were you using? Java Round-Trip? Instant Reverse?
We would be grateful if you could provide us with some steps to repeat your problem.
Were you trying to modify the code content for the code of the ORM Persistable classes? They are replaced during regeneration. That’s why your changes lost.
If you want to define some logic in the generated stuff, you may consider using ORM Implementation class. Let me tell you how to use this first, and then let you know what is the effect of using the implementation class.
To create an ORM implementation class:
Move to cursor the model class. This shows a set of icons around the model.
Press on the ‘Create ORM implementation class’ icon, hold the mouse button, and drag downwards. This generate an ORM implementation class for you.
Add the business logic in the implementation class
Then what’s the effect of using implementation class? You also aware that the model class code were overwritten every time you generate ORM. The implementation will never been overwritten for ORM Implementation Class. You can add the business logic there.