Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quarkus-mongodb-rest-data-panache: CRUD endpoints not generated #38568

Closed
nicolasduminil opened this issue Feb 2, 2024 · 1 comment
Closed
Labels

Comments

@nicolasduminil
Copy link

nicolasduminil commented Feb 2, 2024

Describe the bug

Hello,

Using Quarkus 3.0.4.Final with the following POM:

    ...
    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-resteasy-reactive-jackson</artifactId>
    </dependency>
    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-mongodb-rest-data-panache</artifactId>
    </dependency>
    ...

and the following interface and implementation:

...
public interface CustomerResource extends PanacheMongoRepositoryResource<CustomerRepository, Customer, BigInteger> {}
...
@ApplicationScoped
public class CustomerRepository implements PanacheMongoRepositoryBase<Customer, BigInteger> {}
...

The documentation says that the CRUD endpoints would be generated automatically but I don't get anything.

Expected behavior

I expect that, as mentioned by the documentation, the CRUD endpoints be generated automatically.

Actual behavior

I'm not sure when exactly these endpoints are supposed to be generated, at build-time or run-time, but I don't see any generated stuff. In fact, I'm even not sure how would one be supposed to see this generated code.

How to Reproduce?

Reproducer:
Step to reproduce:

  1. git clone https://github.com/nicolasduminil/docstore.git
  2. cd docstore
  3. mvn clean install
  4. docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9b7bb6ccc1cc quarkus-nosql-tests/docstore-mongodb:1.0-SNAPSHOT "java -Djava.util.lo…" 24 minutes ago Up 24 minutes 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 8443/tcp docstore 8327c49723a9 mongo-express "/sbin/tini -- /dock…" 24 minutes ago Up 24 minutes 0.0.0.0:8081->8081/tcp, :::8081->8081/tcp mongo-express 11b8f6554af3 mongo "docker-entrypoint.s…" 24 minutes ago Up 24 minutes 0.0.0.0:27017->27017/tcp, :::27017->27017/tcp mongo

The container named docstore is the one supposed to contain the generated CRUD code. But looking in the JAR, there is nothing.

Output of uname -a or ver

Linux nicolas-XPS-15-9570 5.15.0-92-generic #102-Ubuntu SMP Wed Jan 10 09:33:48 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

java version "17.0.6" 2023-01-17 LTS Java(TM) SE Runtime Environment (build 17.0.6+9-LTS-190) Java HotSpot(TM) 64-Bit Server VM (build 17.0.6+9-LTS-190, mixed mode, sharing)

Quarkus version or git rev

3.0.4.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546) Maven home: /opt/apache-maven-3.9.5 Java version: 17.0.6, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-17 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "5.15.0-92-generic", arch: "amd64", family: "unix"

Additional information

None

@nicolasduminil nicolasduminil added the kind/bug Something isn't working label Feb 2, 2024
Copy link

quarkus-bot bot commented Feb 2, 2024

/cc @FroMage (panache), @geoand (rest-data-panache), @loicmathieu (mongodb,panache)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant