GithubHelp home page GithubHelp logo

Comments (10)

MathieuAA avatar MathieuAA commented on June 24, 2024

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.

outis10 avatar outis10 commented on June 24, 2024

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.

outis10 avatar outis10 commented on June 24, 2024

Ok It seems to I can´t send xmi file with attachment so I paste de file
here:

http://www.omg.org/spec/UML/20110701" xmlns:xmi="
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.

MathieuAA avatar MathieuAA commented on June 24, 2024

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.

outis10 avatar outis10 commented on June 24, 2024

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.

MathieuAA avatar MathieuAA commented on June 24, 2024

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:

issue11

We should not close this thread yet, I want to find out why this breaks in the EntityCreator.

from jhipster-uml.

MathieuAA avatar MathieuAA commented on June 24, 2024

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.

MathieuAA avatar MathieuAA commented on June 24, 2024

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.

outis10 avatar outis10 commented on June 24, 2024

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.

MathieuAA avatar MathieuAA commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.