recursive relation of Table??

Posts   
 
    
yuewah
User
Posts: 2
Joined: 01-Apr-2005
# Posted on: 01-Apr-2005 15:15:29   

why the llblgen will generate a entity class Account that contains some functions or properties with many "". e.g. GetRelationInfoTransactionTable() GetRelationInfoTransactionTable() GetRelationInfoTransactionTable__()

AccountTypeTable_ AccountTypeTable__ AccountTypeTable____

Is it because of the Table "Account" having a recursive relation??

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39750
Joined: 17-Aug-2003
# Posted on: 01-Apr-2005 22:05:03   

The current final version, v1.0.2004.1, has a routine for the name mapped onto the relations, which results in duplicates if a lot of m:n relations between the same entities are formed. A duplicate name is solved by appending a "_".

This is fixed in 1.0.2004.2, now in beta.

Frans Bouma | Lead developer LLBLGen Pro
yuewah
User
Posts: 2
Joined: 01-Apr-2005
# Posted on: 04-Apr-2005 06:44:01   

So, for the name end with "_' , is it supposed to be ignored??

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39750
Joined: 17-Aug-2003
# Posted on: 04-Apr-2005 09:26:50   

yuewah wrote:

So, for the name end with "_' , is it supposed to be ignored??

No, it appends a '' to avoid duplicate names. It's up to the user to give it a proper name. In 1.0.2004.2 the name creation routine has been changed and names with a long "____" suffix should be rare.

Frans Bouma | Lead developer LLBLGen Pro