Git Product home page Git Product logo

Comments (5)

MathieuAA avatar MathieuAA commented on July 4, 2024

Weird. We'll try to reproduce this issue... What version of JHipster-UML are you using? What kind of database (sql, mongodb or cassandra)?
Can you send us your XMI file?

from jhipster-uml.

marcelinobadin avatar marcelinobadin commented on July 4, 2024

Well, I'm using MongoDB. I got my data model with relationships which I had used for MySQL development, than I have created the project with jHipster (mongo option) and then applied the jhispter-uml. The script creates the relationships but without the correct imports in the classes.

I know that using MongoDB we don't have those relationships but once you are creating it should have some reason, right?

from jhipster-uml.

marcelinobadin avatar marcelinobadin commented on July 4, 2024

I did some research and I think instead of using ManyToOne and OneToMany annotations we do need to use DBRef and Transient (http://docs.spring.io/spring-data/mongodb/docs/1.3.3.RELEASE/reference/html/mapping-chapter.html)

from jhipster-uml.

CarlKlagba avatar CarlKlagba commented on July 4, 2024

This is a modeling issue, you can't create relationships between entities in a NoSQL database. For instance, if you want to create two entities, Book and Author, and you want to say that a Book has one Author you would need to add a field author String in Book. And the relation between the two entities be will be kept at the application level, not a the database level.

We will patch JHipster-UML so it warns users when they try to use relationships in a NoSQL database.

from jhipster-uml.

marcelinobadin avatar marcelinobadin commented on July 4, 2024

Ok. Thanks.

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.