Inheritance modifier defaults to Virtual?

Discussion of open issues, suggestions and bugs regarding database management and development tools for Oracle
Post Reply
alex100
Posts: 6
Joined: Mon 18 Jul 2016 19:56

Inheritance modifier defaults to Virtual?

Post by alex100 » Mon 20 Mar 2017 17:47

Hi,

After upgrading to 9.3.230 and saving our model we noticed that all properties have changed to virtual.
It seems that "virtual" is a default setting for that property now, may be it was before but generation wasn't working for it, but for us it's not a desired behaviour, as we don't want to have additional performance hit due to virtual modifiers.

Could you clarify if this has changed recently and if there is a way to set all fields (few thousands of them) to none?

Shalex
Site Admin
Posts: 8248
Joined: Thu 14 Aug 2008 12:44

Re: Inheritance modifier defaults to Virtual?

Post by Shalex » Tue 21 Mar 2017 17:13

A default code generation is not changed with the new build.

Previous incorrect behaviour: Inheritance Modifier=None (default) generated "virtual".
Current behaviour: Inheritance Modifier=Virtual (default) generates "virtual".
alex100 wrote:if there is a way to set all fields (few thousands of them) to none?
Please navigate to Model Explorer > Model > Classes, press Ctrl+F to open Find window, set Look in:Properties, select "Use regular expressions", click right arrow and choose ".* Any match" to select all properties. Then set Inheritance Modifier=None for all properties simultaneously.

Another way to select several properties: click the first property of the first class and, holding Shift, click the last property of the last class to make properties between them be selected.

Post Reply