Bug 354700 - Umbrello does not generate the code with postgresql option in code generation wizard
Summary: Umbrello does not generate the code with postgresql option in code generation...
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.17.0 (KDE Applications 15.08.0)
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-01 17:43 UTC by arnoux
Modified: 2015-12-16 18:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.17.3 (KDE Applications 15.08.3)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arnoux 2015-11-01 17:43:02 UTC
When i utilize code generation wizard in I choose postgresql language and after I press the button "next" and when I press on the button Generate they are nothing to do le status check the not yet generate. It doesn't start the code generation. But if I choose C++ language and I press on the button Generate the status check the succes state for every class.
Can you repare this problem?
Thanks

Reproducible: Always

Steps to Reproduce:
1.I choose code generation wizard tool
2.In the general I choose postgresql Language
3.I press on the buttom next
4.I press on the buttom Generate
5. Nothing to do, the status stay on not yet generate

Actual Results:  
Nothing

Expected Results:  
generate the code for postgresl
Comment 1 Ralf Habacker 2015-11-02 08:09:54 UTC
You need to add the entities to be generated to a entity relation diagram.
Comment 2 Ralf Habacker 2015-11-02 10:28:01 UTC
Another option is to select the entity relationship model folder in the tree view.

BTW: Selecting logical view in the tree view and opening class generating wizard shows all classes below it, but the wizard is unable to generated from related classes. Looks somehow broken :-(
Comment 3 arnoux 2015-11-02 11:25:24 UTC
Hi Ralf,
Thanks a lot. Efectively, I need to create the entity on the relationship model. 

steph
Comment 4 Ralf Habacker 2015-11-02 11:47:28 UTC
Git commit 16c167212abc2206d04c123726afc20e9626efa7 by Ralf Habacker.
Committed on 02/11/2015 at 11:47.
Pushed by habacker into branch 'Applications/15.08'.

Fix bug 'don't generate the code with postgresql option in code generation wizard'.

- Use uml object root depending on the active language instead of tree view
  selection, which do not work for entities.
- Fix order of code generator wizard pages to show options first and then
  class selection page to avoid choosing invalid objects caused by changing
  active language after selection.
FIXED-IN: 2.17.3 (KDE Applications 15.08.3)

M  +10   -1    umbrello/codegenwizard/codegenerationwizard.cpp
M  +4    -1    umbrello/codegenwizard/codegenerationwizard.h
M  +7    -9    umbrello/codegenwizard/codegenselectpage.cpp

http://commits.kde.org/umbrello/16c167212abc2206d04c123726afc20e9626efa7
Comment 5 Oliver Kellogg 2015-11-03 19:22:23 UTC
I had difficulty understanding the title.
I hope you don't mind my changing it.
Comment 6 arnoux 2015-11-04 04:11:54 UTC
Thanks for their explications,
I'll test with Ralf Habacker's directives.

Steph
Comment 7 Ralf Habacker 2015-12-16 18:49:06 UTC
Git commit 3604c8c775367647816771772d71e2d48ebdec83 by Ralf Habacker.
Committed on 16/12/2015 at 18:15.
Pushed by habacker into branch 'frameworks'.

Fix bug 'don't generate the code with postgresql option in code generation wizard'.

- Use uml object root depending on the active language instead of tree view
  selection, which do not work for entities.
- Fix order of code generator wizard pages to show options first and then
  class selection page to avoid choosing invalid objects caused by changing
  active language after selection.
FIXED-IN: 2.17.3 (KDE Applications 15.08.3)

M  +10   -1    umbrello/codegenwizard/codegenerationwizard.cpp
M  +4    -1    umbrello/codegenwizard/codegenerationwizard.h
M  +7    -9    umbrello/codegenwizard/codegenselectpage.cpp

http://commits.kde.org/umbrello/3604c8c775367647816771772d71e2d48ebdec83