Comments (10)
Hi!
From your pic, I don't see why this fails. Author is clearly mentionned...
Can you send me your XMI file please? I'd like to run some tests (I'll try to reproduce what you tried to do in order to better understand this issue).
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.
from jhipster-uml.
Here is the xmi file
On Tue, Jun 23, 2015 at 12:24 PM, Mathieu ABOU-AICHI <
[email protected]> wrote:
Hi!
From your pic, I don't see why this fails. Author is clearly mentionned...
Can you send me your XMI file please? I'd like to run some tests (I'll try
to reproduce what you tried to do in order to better understand this issue).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.—
Reply to this email directly or view it on GitHub
#11 (comment)
.
from jhipster-uml.
Ok It seems to I can´t send xmi file with attachment so I paste de file
here:
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 <
[email protected]> wrote:
Don't forget the file =)
—
Reply to this email directly or view it on GitHub
#11 (comment)
.
from jhipster-uml.
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.
from jhipster-uml.
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 <
[email protected]> wrote:
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.—
Reply to this email directly or view it on GitHub
#11 (comment)
.
from jhipster-uml.
The issue is caused by the bidirectional relationship (they're evil).
I don't exactly see why they cause this to fail, but it works with this version of your file:
We should not close this thread yet, I want to find out why this breaks in the EntityCreator.
from jhipster-uml.
Ok I got it (easy as pie)!
Modelio, if there's a bidirectional relationship, doesn't set a "name" attribute to its association tag:
<packagedElement xmi:type="uml:Association" xmi:id="_0EfOyxnaEeWw3ro4S7dYeg" memberEnd="_0EfOxRnaEeWw3ro4S7dYeg _0EfOzRnaEeWw3ro4S7dYeg"/>
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).
from jhipster-uml.
I'm closing this as the bug is now noticed.
Feel free to re-open this thread if I did something wrong.
from jhipster-uml.
This is proof of concept I am playing with jhipster-uml because I will
start a project(at leas 25 tables) of collecting account and I had mapped
bidirectional relationships
but I can leave without these relationships.
So Thanks and I will around here.
On Tue, Jun 23, 2015 at 12:54 PM, Mathieu ABOU-AICHI <
[email protected]> wrote:
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 don't check if this attribute exists!
If it does, then everyting's alright. If it doesn't then something's
clearly wrong.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).—
Reply to this email directly or view it on GitHub
#11 (comment)
.
from jhipster-uml.
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.
Don't hesitate to open a new thread if you have any question regarding your POC, we'll be happy to help.
from jhipster-uml.
Related Issues (20)
- Is Visual Paradigm Supported by Jhipster-uml? HOT 3
- Doesn't support .jdl and .jh files as input HOT 9
- Incompatible type errors on generated code based on UML file. HOT 6
- Support for Sparxsystem Enterprise Architect HOT 5
- Implement contraint support for UML Designer HOT 1
- Error: Cannot read property 'relationships' of undefined HOT 1
- mongoDB + jhipster UML HOT 5
- Array in MongoDB in JDL file. HOT 1
- Generating all the entities from Microservice in Gateway app HOT 1
- microservicename is json file generated by import-jdl
- Add the jpa filter option
- How to modify existing entity generated with jhipster? HOT 1
- After modify my existing entity I generated chane log and put it in master.xml, but after that I run gradlew command I got following probem HOT 1
- Convert JDL to XMI HOT 2
- Bug in docs HOT 2
- Installation of JHipster-UML terminates with error HOT 2
- Cannot read property '0' of undefined HOT 2
- The type 'Instant' isn't supported by JHipster
- Deprecate this project
- Setting up Jhipster-Core for Azure Pipelines
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jhipster-uml.