User bio
Java, JavaScript, Spring boot, APIs , Angular, Ensemble, Cache I'm passionate about the IT area and for those technologies, I have been working in the IT area for more than seven years and always I like to be learning about it.
Member since Aug 28, 2021
Replies:

Thank you so much @Guillaume.Rongier 7183  I got it to connect Intersystems IRIS Database with quarkus and the project is running, also, the ORM is working because it created the table automatically
the only problem that I'm having now is  when I'm trying to call the method POST or GET  I'm getting the following message
415 Unsupported Media Type.
Also, I tried to change the quarkus.datasource.jdbc.url. by 
quarkus.datasource.reactive.url  but when I did that didn't work

I updated the project on GitHub maybe you can help me with this message error running my project
https://github.com/JoseAdemar/quarkus-project-with-intersystems-ris-data...

looking at his code I could see his project is a little bit different from mine. I'm using  panache orm
Example:

my Repository

@ApplicationScoped
public class ClientRepository  implements PanacheRepositoryBase<Client,Long>{

}

my Entity

@Data
@NoArgsConstructor
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
@Entity
@Table(name = "tbl_client")
public class Client {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @EqualsAndHashCode.Include
    private Long id;

    
    @Size(max = 50)
    @Column(name = "first_name")
    private String firstName;

    
    @Size(max = 50)
    @Column(name = "last_name")
    private String lastName;
    
}

my Controller

@Path("/api/guests")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public class ClientController {

    
private final ClientService clientService;
    
    public ClientController(ClientService clientService) {
        this.clientService = clientService;
    }

    @POST
    public Response createClient(@RequestBody Client client) {
        clientService.create(client);
        return Response.status(Status.CREATED).entity(client).build();
    }

}

This the link of my project on GitHub
https://github.com/JoseAdemar/quarkus-project-with-intersystems-ris-data...

Certifications & Credly badges:
José Ademar has no Certifications & Credly badges yet.
Global Masters badges:
Followers:
José Ademar has no followers yet.
Following:
José Ademar has not followed anybody yet.