[Answered] Why are all primary keys in derived entities missing after export?

0 votes
asked Oct 29, 2013 in General Questions by lisaully (150 points)
edited Nov 18, 2013 by Martin Freki Stradej

Hi.
I have got two entities. Person and Employee.
Employee is derived from Person but contains its own primary key.
If I export all entities the primary key in Employee is not exported.

In all derived entities are the primary keys missing...
Is this a bug or an error on my part?

I am using version: 2.2.5.754

(Sorry for my bad English)

1 Answer

0 votes
answered Oct 29, 2013 by ludek.vodicka Skipper developer (140,450 points)
selected Jul 30, 2014 by Martin Freki Stradej
 
Best answer

Hi, it's not a bug but feature.
Because derived entity derives all fields from base, derived entity also has a primary key from it's parent. Because of this ORM Desigener doesn't export primary keys again.

Is there any real-case scenario why do you need that?

...