BESSER-PEARL / BESSER

A Python-based low-modeling low-code platform for smart software
https://besser.readthedocs.io/en/latest/
MIT License
44 stars 11 forks source link

Sql alchemy generator missning class name error #53

Closed Aran30 closed 8 months ago

Aran30 commented 8 months ago

Right now, the generator does not handle one to many relationships correctly.

Given the following uml class diagram: image

The relationships are generated as follows:

image

When trying to instantiate the class city:

c = City(name = "name")

Following error pops up:

image

Adding the class name of the corresponding end of the relationship is necessary.