Git Product home page Git Product logo

Comments (6)

amanganiello90 avatar amanganiello90 commented on July 19, 2024

Hi @ameinabdi, TypeORM supports blob for some database types. For mysql there is the image type, as you can read here... so replace your column entity with that ;)

from generator-jhipster-nodejs.

ameinabdi avatar ameinabdi commented on July 19, 2024

hi @amanganiello90
okey.
-> is there any way to make relations of entities

from generator-jhipster-nodejs.

amanganiello90 avatar amanganiello90 commented on July 19, 2024

Hi @ameinabdi ... so All it's possible for the software engineering, but the time it's only 24 hours per day, and I'm developing almost everything in this project. That you explain is a new feature, but now I haven't time to implement it, I have just finished the oauth2 feature also for the react client..
So if somebody wants to contribute, with a donation or a code development, is welcome!

from generator-jhipster-nodejs.

ameinabdi avatar ameinabdi commented on July 19, 2024

sorry for using your time @amanganiello90
i would like to contribute as code development if you guide me
thank you

from generator-jhipster-nodejs.

amanganiello90 avatar amanganiello90 commented on July 19, 2024

Hi @ameinabdi , it's not a problem! I will show you what you have to change, and after that push your branch opening a pull request to me.

For this feature, you have to modify the entity.ts template adding maybe an if for your type.. but please attention that according typeorm, the blob type is different for every database, so you have to include also a condition with the prodDatabaseType.
You can find examples in the jhipster entity template.

To develop the feature, follow this steps:

  • git clone https://github.com/jhipster/generator-jhipster-nodejs.git
  • cd generator-jhipster-nodejs
  • git checkout -b feature/blob
  • npm install
  • npm link
  • cd ..
  • git clone https://github.com/jhipster/generator-jhipster.git
  • cd generator-jhipster
  • npm install
  • npm link
  • cd ..
  • mkdir test-generation
  • cd test-generation
  • npm link generator-jhipster
  • npm link generator-jhipster-nodejs

Now you will develop under the generator-jhipster-nodejs that you have cloned with git.
After finish, to generate the app and check your feature, run in test-generation folder:

  • jhipster --blueprints nodejs import-jdl <your-jdl>

from generator-jhipster-nodejs.

amanganiello90 avatar amanganiello90 commented on July 19, 2024

The image type is used only for mssql and not for mysql.
So I will start feature on feature/blob-entity branch to include only generic blob type optimizing entity relationship templates.

from generator-jhipster-nodejs.

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.