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...
Thank you so much @Guillaume Rongier
for your help and also for being patient with me. Now my project is running correctly you helped me to find a solution.