Is TwoClasses "My" prefix configurable?

Posts   
 
    
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 11-Jul-2006 22:42:17   

I don't think I can change prefix My or can I? I mean I could modify the templates affected yet, the entity.template uses [ SuperTypeName ] where I can't change the prefix. Or is it possible?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 12-Jul-2006 09:24:49   

Please elaborate more.

Thanks

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 12-Jul-2006 09:39:46   

Walaa wrote:

Please elaborate more.

When using TwoClasses then the business set of classes is prefixed with "My". I would like to use another prefix, so for example, instead of: MySomeEntity -> RhSomeEntity. Of course, the change is purely cosmetic.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 12-Jul-2006 09:51:05   

These are hardcoded as they're the old extension templates for 1.0.2005.1. These used My as prefix. If you want another prefix, copy the templates used and change the prefix. the templates used are: derivedEntityAdapter.template derivedEntityFactoriesAdapter.template entityUsingDerivedAdapter.template inheritanceInfoProviderDerived.template

all stored in the shared templates folder. You should bind the copies in a new templatebindings file, and make that file overrule the existing template bindings by moving the templatebindings file to the top of the list at tab 2 in the generator config window simple_smile

Frans Bouma | Lead developer LLBLGen Pro
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 12-Jul-2006 13:22:59   

Hi Frans,

I think there might be a problem with hierarchic entities as entity.template uses [SuperTypeName] for base class if I am not mistaken and this supertypename starts with My for derived entities. If this is true, where is that SuperTypeName actually set?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 12-Jul-2006 16:48:48   

I think the SuperTypeName will be replaced at generation time by the name of the supertype of the current entity. So if My is already removed from the super type names then it won't be written in the derived entities' code.