"No primary key attribute found in class" Error

I’ve created a table ‘test’ with ‘id’ as a key and some other attributes. Then I created a self Many to Many Entity whose primary keys are testid and testid2 from the first table. When I try generating code, I keep getting a “No primary key attribute found in class” Error. The ER diagram clearly shows that the key for the newly generated Entity are there.
And the relationship between the ‘test’ table and the ‘test_test’ table are identifying.
Any help?

Hi Anonymous,

Thank you for your evaluation.

I have tried creating an ERD based on the information you gave, and then generate code from it. However, I am unable to repeat the error you described. I attached my ERD, could you please check if I have drawn it correctly?

Also, could you please try synchronizing the ERD to Class Diagram before generating code? You can do this by right-clicking on the ERD, and then select Synchronize to Class Diagram from popup menu.

Finally, I would like to know which build you are now using. Could you please take a look at the About dialog box (Help | About…) to check the build number?

Looking forward to hearing from you.

Best Regards,
Jick
erd_20060206a.PNG

Jim,
To reproduce the problem. Make sure you add any attribute to the newly created test_test entity. And then try generating the code. I am using DB Architect Evaluation version build 20051204b - I will try downloading the latest eval copy.
John

[quote=Jick]Hi Anonymous,

Thank you for your evaluation.

I have tried creating an ERD based on the information you gave, and then generate code from it. However, I am unable to repeat the error you described. I attached my ERD, could you please check if I have drawn it correctly?

Also, could you please try synchronizing the ERD to Class Diagram before generating code? You can do this by right-clicking on the ERD, and then select Synchronize to Class Diagram from popup menu.

Finally, I would like to know which build you are now using. Could you please take a look at the About dialog box (Help | About…) to check the build number?

Looking forward to hearing from you.

Best Regards,
Jick[/quote]

Jick,

I tried it with build 20060116d and it still gives the same problem. I am attaching my Class diagram.
John

[quote=Jick]Hi Anonymous,

Thank you for your evaluation.

I have tried creating an ERD based on the information you gave, and then generate code from it. However, I am unable to repeat the error you described. I attached my ERD, could you please check if I have drawn it correctly?

Also, could you please try synchronizing the ERD to Class Diagram before generating code? You can do this by right-clicking on the ERD, and then select Synchronize to Class Diagram from popup menu.

Finally, I would like to know which build you are now using. Could you please take a look at the About dialog box (Help | About…) to check the build number?

Looking forward to hearing from you.

Best Regards,
Jick[/quote]
test.png

Hi John,

Sorry for my late reply.

I just checked our internal changelog, and found that the problem you encountered has been fixed. Please download the hotfix here:
http://files2.visual-paradigm.com/200602/HotFix/20060128a/vpplatform.jar

The following article shows you how to apply the hotfix to your VP Suite:
http://resource.visual-paradigm.com/tips_and_tricks/general/replacing_hot_fix.html

If there are any further inquiry, please do not hesitate to contact me.

Best Regards,
Jick

Jick,

I updated my DB-VA software and I get a new error:
[23:57:28] [Error] Please create single primary key for primary key assoication in tabletest_test.

I am attaching an ER diagram

[quote=Jick]Hi John,

Sorry for my late reply.

I just checked our internal changelog, and found that the problem you encountered has been fixed. Please download the hotfix here:
http://files2.visual-paradigm.com/200602/HotFix/20060128a/vpplatform.jar

The following article shows you how to apply the hotfix to your VP Suite:
http://resource.visual-paradigm.com/tips_and_tricks/general/replacing_hot_fix.html

If there are any further inquiry, please do not hesitate to contact me.

Best Regards,
Jick[/quote]
Diagram1.png

Hi John,

The problem you mentioned is fixed, please download the hotfix at:
http://files2.visual-paradigm.com/200602/HotFix/20060128b/vpplatform.jar

Please follow the same instruction as mentioned before to apply this fix. If there are any questions, please let me know.

Best Regards,
Jick