dirigible icon indicating copy to clipboard operation
dirigible copied to clipboard

Generated resources are placed in folders with entity perspective name

Open iliyan-velichkov opened this issue 10 months ago • 4 comments

Generated resources are placed in folders with entity perspective name. For example, if you have project codbex-electra with entity SalesOrder in perspective Sales orders the DAO will be placed in folder codbex-electra/gen/dao/Sales orders. This way, if you use the generated DAO and rename the perspective, your code will stop working. The import must be updated.

Proposed solutions:

  • but the DAO in the gen/dao folder
  • add index.ts in the dao folder

iliyan-velichkov avatar Apr 17 '24 07:04 iliyan-velichkov

In addition, the perspective name is used in the messaging as well image Consider to decouple it as well.

iliyan-velichkov avatar Apr 17 '24 09:04 iliyan-velichkov

@iliyan-velichkov it should be fixed now, no?

delchev avatar Apr 29 '24 18:04 delchev

@delchev I'm not sure why it is placed in folder sales-orders sales-orders is used for folder name and for topic name as well. image image image

iliyan-velichkov avatar Apr 30 '24 07:04 iliyan-velichkov

Ok, I updated the entities manually and now they are placed in salesordername. image However, I don't think that the perspective should be used in the topic name. In my opinion, it could be removed. image

I still think that there is no need to put generated resource in folders which contain the perspective name. Can we remove these folders are put the resources in gen/dao directly?

I have reported an issue regarding the manual reconfiguration which is needed - https://github.com/eclipse/dirigible/issues/3861

iliyan-velichkov avatar Apr 30 '24 07:04 iliyan-velichkov

will keep the current behavior for now

delchev avatar May 12 '24 07:05 delchev