There is no class model available for code generation

Hello,

We are looking for a tool integrated in NetBeans to generate code and class diagram. VP seems fine and can be integrated in NetBeans.
If we create a new Class in a class diagram, we can generate corresponding Java code. If we update code, the diagram can be updated. If we update diagram, the code can be updated.
But there is a problem when we first create a Java class and then reverse engineer the corresponding class diagram. Now we modify the diagram and want to update the code but we get the message “There is no class model available for code generation” and the code is not updated…

I try it with VP 12.0 (evaluation copy) standart edition and

  • Netbeans 7.4
  • Netbeans 8.0.2
  • JDK 7 64 bits
  • JDK 7 32 bits
    I got the same problem…

Is there something i’m doing wrong or is this a bug ?

Thank you,

Jerome

PS : this issue appends when doing “instant reverse”

Hi,

May I know you are generating code via Java round-trip code engineering? or Instant Generator?

Best regards,
Rain Wong

Hi,

How can I know ? Here is what I do :

  • I click on “Instant Reverse…” in “Class Repository” tab.
  • I chose the src folder i want to reverse engineer
  • Right click on a package --> Reverse “…” To --> New Class Diagram
  • The new diagram appear
  • I add an attribute on one of the class
  • Right click on the class --> “Update to code”

But the code is never updated…

Jérôme

Hi !

Have you suceeded in reproducing this bug ?

Thank you,

Jérôme

Hi,

I test it with VP 11.2 and netbeans 7.4. Same problem :wink:

Jérôme

Hello,

Have you any news concerning this issue ?

Thank’s,

Jérôme