dirigible
dirigible copied to clipboard
Generated resources are placed in folders with entity perspective name
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 thedao
folder
In addition, the perspective name is used in the messaging as well
Consider to decouple it as well.
@iliyan-velichkov it should be fixed now, no?
@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.
Ok, I updated the entities manually and now they are placed in salesordername
.
However, I don't think that the perspective should be used in the topic name. In my opinion, it could be removed.
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
will keep the current behavior for now