-
-
Notifications
You must be signed in to change notification settings - Fork 99
undefined property field-name #11
Comments
Hi! From your pic, I don't see why this fails. Author is clearly mentionned... Also, this may be related: you have a bidirectional relationship. It will throw a CircularDependency later when figuring out which class is to be generated first. |
Here is the xmi file On Tue, Jun 23, 2015 at 12:24 PM, Mathieu ABOU-AICHI <
|
Ok It seems to I can´t send xmi file with attachment so I paste de file http://schema.omg.org/spec/XMI/2.1" xmi:version="2.1" xmi:id="_0EfOwBnaEeWw3ro4S7dYeg" name="poc"> /uml:Model On Tue, Jun 23, 2015 at 12:31 PM, Mathieu ABOU-AICHI <
|
I can't import it because Modelio tells me it's not a valid XMI file... I'll do the same diagram to test it. |
This I the one y probe in another modelio project: http://www.omg.org/spec/UML/20110701" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmi:version="2.1" xmi:id="_DyhREBnfEeWw3ro4S7dYeg" name="poc"> /uml:Model On Tue, Jun 23, 2015 at 12:38 PM, Mathieu ABOU-AICHI <
|
Ok I got it (easy as pie)! Modelio, if there's a bidirectional relationship, doesn't set a "name" attribute to its association tag:
The error is due to the fact that we partly check if there's no error! An injected field should have been deduced when reading the extracted data, but as there was nothing to read, an exception was thrown. I'm going to fix this ASAP. Please let me know if using a unidirectional association works for you (I'll close this thread after the fix is pushed). |
Bidirectional relationships now recognized as such, and now throw an exception.
I'm closing this as the bug is now noticed. |
This is proof of concept I am playing with jhipster-uml because I will So Thanks and I will around here. On Tue, Jun 23, 2015 at 12:54 PM, Mathieu ABOU-AICHI <
|
JHipster manages bidirectional relationships just fine! UML-y speaking, bidirectional aren't that good, that's why we decided not to allow them at all (they can cause lots of issues, and usually can be replaced by better designs). You can just "convert" your bidirectional to unidrectional, and it everything should work great. |
Hi, again i have and issue in a simple example model
this is my model
and I get this error
Parser detected: MODELIO.
Cannot read property 'name' of undefined
TypeError: Cannot read property 'name' of undefined
at EntitiesCreator.getAssociationFieldName (C:\Users\narciso.parra\AppData\Roaming\npm\node_modules\jhipster-uml\lib\entitiescreator.js:276:66)
at EntitiesCreator.setRelationshipOfEntity (C:\Users\narciso.parra\AppData\Roaming\npm\node_modules\jhipster-uml\lib\entitiescreator.js:206:32)
at EntitiesCreator.createEntities (C:\Users\narciso.parra\AppData\Roaming\npm\node_modules\jhipster-uml\lib\entitiescreator.js:52:12)
at Object. (C:\Users\narciso.parra\AppData\Roaming\npm\node_modules\jhipster-uml\jhipster-uml.js:73:11)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
Thanks In advance!!!
The text was updated successfully, but these errors were encountered: