Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Entity Wizard omits columns in entity if foreign key
Entity Wizard omits columns in entity if foreign key [message #435475] Tue, 17 March 2009 19:52 Go to next message
Kevan Holdaway is currently offline Kevan HoldawayFriend
Messages: 10
Registered: July 2009
Junior Member
Hi I noticed the entity wizard doesn't generate a column for the foreign
key if the table that the foreign key references has no entity class. For
example, if you have table A with a foreign key that points to PK of Table
B. Then you launch the entity generation wizard and only select Table A,
you will find that the field for the foreign key column is not part of the
entity class of A.

Does this seem correct?
Re: Entity Wizard omits columns in entity if foreign key [message #435500 is a reply to message #435475] Wed, 18 March 2009 21:01 Go to previous messageGo to next message
Kevan Holdaway is currently offline Kevan HoldawayFriend
Messages: 10
Registered: July 2009
Junior Member
This really is a question of whether Dali currently works as designed or
if this is a bug.
Re: Entity Wizard omits columns in entity if foreign key [message #435504 is a reply to message #435500] Thu, 19 March 2009 19:36 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Kevan Holdaway wrote:

> This really is a question of whether Dali currently works as designed or
> if this is a bug.

This behavior has actually recently changed in 2.2 M6, where we have
introduced new Entity Generation from Tables. For this scenario, an
attribute will now be created for the foreign key, and it will be mapped
as a default (basic) mapping. I think this is probably the most
appropriate way to generate the code, but feedback is certainly welcome.

Neil
Re: Entity Wizard omits columns in entity if foreign key [message #615750 is a reply to message #435475] Wed, 18 March 2009 21:01 Go to previous message
Kevan Holdaway is currently offline Kevan HoldawayFriend
Messages: 10
Registered: July 2009
Junior Member
This really is a question of whether Dali currently works as designed or
if this is a bug.
Re: Entity Wizard omits columns in entity if foreign key [message #615757 is a reply to message #435500] Thu, 19 March 2009 19:36 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Kevan Holdaway wrote:

> This really is a question of whether Dali currently works as designed or
> if this is a bug.

This behavior has actually recently changed in 2.2 M6, where we have
introduced new Entity Generation from Tables. For this scenario, an
attribute will now be created for the foreign key, and it will be mapped
as a default (basic) mapping. I think this is probably the most
appropriate way to generate the code, but feedback is certainly welcome.

Neil
Previous Topic:Project without annotaions in the model classes
Next Topic:Are synonyms suppose to show up in the entity wizard?
Goto Forum:
  


Current Time: Tue Mar 19 02:38:08 GMT 2024

Powered by FUDForum. Page generated in 0.02111 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top