Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, JPA annotations cannot be specified through openapi-generator in Spring as they are specific to the Java Persistence API (JPA) and are used for mapping Java objects to relational database tables. OpenAPI is a specification for building and describing RESTful APIs, while JPA is a specification for managing relational databases in Java. However, you can use openapi-generator to generate code from an OpenAPI specification and then manually add JPA annotations to the generated code as needed.