Giter Club home page Giter Club logo

Comments (12)

 avatar commented on June 19, 2024 2

I can start this task

from generator-jhipster-quarkus.

mraible avatar mraible commented on June 19, 2024 1

That worked! Thanks, @avdev4j.

from generator-jhipster-quarkus.

 avatar commented on June 19, 2024

What is your advice? I read this guide: https://quarkus.io/guides/mongodb
What templates we have to add? Maybe a service and domain classes only? (it isn't as JPA with repository classes)

from generator-jhipster-quarkus.

danielpetisme avatar danielpetisme commented on June 19, 2024

The service layer shouldn't be impacted by the data persistent choice so we don't need to update it.
You should have a look to:
https://quarkus.io/guides/mongodb-panache
Quarkus proposes the repository pattern and active record. Since JHipster already relies on repository I think it's easier to stay on this pattern in a first version (even if it's not very Quarkus idiomatic)

So basically:

  • Generate an Entity (I didn't test the following code...)
@MongoEntity(collection="ThePerson")
public class Person {

    public ObjectId id;
    public String name;
}

and a repostory

@ApplicationScoped
public class PersonRepository implements PanacheMongoRepository<Person> {

   public Person findByName(String name){
       return find("name", name).firstResult();
   }

}

from generator-jhipster-quarkus.

 avatar commented on June 19, 2024

Perfect! Working with reactive nosql database, I thought to use client classes, so the pattern with repository and entity classes was not usefull. But If we want to keep jhipster design, as your advice I use the same standard patter with mongodb-panache. Thanks

from generator-jhipster-quarkus.

danielpetisme avatar danielpetisme commented on June 19, 2024

"Better done, than perfect" I focus on delievery a 0.0.1 this month so I focus on the big fishes.

from generator-jhipster-quarkus.

 avatar commented on June 19, 2024

"Better done, than perfect" I focus on delievery a 0.0.1 this month so I focus on the big fishes.

Right! it is the simple agile principle ;)... I did it also in my nodejs blueprint

from generator-jhipster-quarkus.

joewhite101 avatar joewhite101 commented on June 19, 2024

Is this covered by this PR?

#15

The status on the PR isn't totally clear.

from generator-jhipster-quarkus.

 avatar commented on June 19, 2024

Is this covered by this PR?

#15

The status on the PR isn't totally clear.

Hi, the PR is in progress and not completed (you can consider that declined)

from generator-jhipster-quarkus.

mraible avatar mraible commented on June 19, 2024

@joewhite101 If you give me permissions to add labels to this repo, I can add a bug bounty to this issue.

from generator-jhipster-quarkus.

joewhite101 avatar joewhite101 commented on June 19, 2024

@avdev4j I don't think I have enough access. Can you give @mraible the access needed to add labels?

from generator-jhipster-quarkus.

avdev4j avatar avdev4j commented on June 19, 2024

I've just added @mraible as a maintainer of the project. Please Matt, tell me if is this is enough. Bug bounty labels are already created for this label.

from generator-jhipster-quarkus.

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.