Choose Relationships to Generate Dialog Box does not appear [message #522991] |
Wed, 24 March 2010 12:58  |
Eclipse User |
|
|
|
Hello group,
I installed Eclipselink version 2.0.1 and try to use it for ORM.I Created the project.
and successfuly Import database tables From an Existing Data Model in MySQL.
in next step to generate classes from tables I chose:
Selected > Generate Classes and Descriptors from > Selected Tables or All Tables from the menu
then I Completed each field on the Generate Classes and Descriptors dialog box and click OK
In next step according to the user mannual
http:// wiki.eclipse.org/Using_Workbench_%28ELUG%29#Generating_Class es_and_Descriptors_from_Database_Tables
I am suppose to get "Choose Relationships to Generate Dialog Box" where I have forign keys point to the reference tables in my tables
But this dialog box does NOT appear!!
Any help to solve this problem?
Thanks
b.
[Updated on: Wed, 24 March 2010 13:57] by Moderator
|
|
|
|
|
Re: Choose Relationships to Generate Dialog Box does not appear [message #523298 is a reply to message #522991] |
Thu, 25 March 2010 15:34  |
Eclipse User |
|
|
|
The Mapping Workbench is how mappings were defined before the JPA standard. This exports EclipseLink specific XML for the EclipseLink specific mapping API that was used before JPA. The doc is just documenting this old feature/model (I agree the docs are confusing and we are working on updating them).
For a new application, I would recommend you use JPA, and do not use the Mapping Workbench. If you need to generate classes from tables, you can use Eclipse's JPA tooling support (Dali).
I suppose you could just use the MW to generate you java files, and then edit them by hand, and add the JPA annotations, but it would be better to use a proper JPA tool.
|
|
|
Powered by
FUDForum. Page generated in 0.03949 seconds