Thanks !!
- Log in to post comments
Thanks !!
When you have just a Method you need to instantiate the class to run this method.
When you use ClassMethod is a static method so you can call directly it's not necessary to
instantiate
Despite being a junior, and having this contact with COS, and comparing with other programming languages I've seen, sometimes I find some things in COS quite difficult to do while in other languages it becomes much easier, I think is difficult to find someone that it's starting as a developer to be interested to learn COS because there are so many new technologies that are so powerful e much easier to learn.
@YURI MARX GOMES
Could you send to me the jars file?
Do you know how I can get the jar file?
I was looking to download
but I'm not getting much information
Thank you @Dmitry Maslennikov
I download the jar files but I didn't get to set up
it's not working.
Thank you @Eduard Lebedyuk
I download the jar files and added but I didn't get to set up
it's not working.
Guys, I still couldn't set up the Intersystems IRIS database on quarkus, does anyone has already done this to help me?
Thanks, @Guillaume Rongier
I'm going to try following this project and if I get it
I'm going to give you some feedback.
I tried this setup but it didn't work
using other databases, I can set up easily
I tried that but still, it's not working:
pom.xml
<dependency>
<groupId>com.intersystems</groupId>
<artifactId>intersystems-jdbc</artifactId>
<version>3.2.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/intersystems-jdbc-3.2.0.jar</systemPath>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-iris</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/hibernate-iris-1.0.0.jar</systemPath>
</dependency>
application.properties
quarkus.datasource.db-kind=other
quarkus.datasource.username=_system
quarkus.datasource.password=*
quarkus.datasource.reactive.url=jdbc:IRIS://localhost:1972/USER
quarkus.datasource.jdbc.driver=com.intersystems.jdbc.IRISDriver
quarkus.hibernate-orm.dialect=org.hibernate.dialect.InterSystemsIRISDialect
Thank you so much!
I'm going to check the repository.
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-dat…
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-dat…
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.