bgjug / website

The website of jug.bg, written with Java EE
3 stars 15 forks source link

Moved the application server from Tomee to Quarkus #15

Closed vv-b-s closed 5 years ago

vv-b-s commented 5 years ago

Modified some of the backend classes to work with Quarkus and updated the readme.

Problems: The frontend plugin has stopped working resulting in: No plugin found for prefix 'frontend' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/valentin/.m2/repository), central (https://repo.maven.apache.org/maven2)]

gochev commented 5 years ago

well fix the problems :P

gochev commented 5 years ago

Please Fix all the issues and do not include new issues :) The only tasks is to move to Quarkus but keep everything as it is.

gochev commented 5 years ago

to use MYSQL it should be something like this (not tested)

quarkus.datasource.url = jdbc:mysql://localhost:3306/bgjug?characterEncoding=utf8 quarkus.datasource.driver = org.mariadb.jdbc.Driver quarkus.hibernate-orm.dialect=org.hibernate.dialect.MySQL5Dialect

vv-b-s commented 5 years ago

to use MYSQL it should be something like this (not tested)

quarkus.datasource.url = jdbc:mysql://localhost:3306/bgjug?characterEncoding=utf8 quarkus.datasource.driver = org.mariadb.jdbc.Driver quarkus.hibernate-orm.dialect=org.hibernate.dialect.MySQL5Dialect

I see you mention MySQL5Dialect as a dialect. Do we want MySql 5.x or use the latest available 8.0.17

gochev commented 5 years ago

with 5.x I am sure it works :) and with this dialect which is already in the quarkus-mariadb-jdbc :) with 8.. I am not sure what version of JDBC and of Hibernate it requires.

gochev commented 5 years ago

there is also MySQL 55 and 57 dialects btw but I have never used them :)) I have tried hello world last week with Quarkuz and MySQL and it was working with this properties 99% sure ;) ..

gochev commented 5 years ago

Also please please please update the readme... since not everyone knows about the quarkus:dev... I am not sure is the -Pnative works? and so on..

gochev commented 5 years ago

@ivannov pff this quarkus-hibernate-orm-panache is so ugly... Article.Methods.. blah.. fck DAOs and Repositories.. is this really the proper way ? :( ... :) blqks is this the STANDARD :))))))))))))))))

ivannov commented 5 years ago

@ivannov pff this quarkus-hibernate-orm-panache is so ugly... Article.Methods.. blah.. fck DAOs and Repositories.. is this really the proper way ? :( ... :) blqks is this the STANDARD :))))))))))))))))

It is obvious that you didn't come to my Quarkus session for the JUG earlier. And I feel like one that sees in the future as I had a special joke for you regarding repositories

So, the thing is: do we really want to have repository classes that do not add business logic, but work as a collections of finders?

In Quarkus you can have both ways:

So I asked @vv-b-s to do it the first way

Please, before you state your enormous Spring experience here as a reason, consider the following: