|--- demo-kotlin-dsl
|--- app
|--- src/main/kotlin/com/example/demokotlindsl
|--- providers
|--- entrypoint
|--- domain
|--- src/main/kotlin/com/example/demokotlindsl
|--- providers
|--- entity
Arquitetura de Codigo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>Hello</title> | |
| </head> | |
| <body> | |
| <!-- | |
| <input id="name" value=""> | |
| <button onclick="sayHello()">Hello</button> | |
| --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Geração do Schema | Descrição | |
|---|---|---|
| none | Não executa nenhuma ação | Usado como valor default | Por isso temos o erro Table not found | |
| drop-and-create | Destroi todo o Schema e cria novamente. Quando executamos a aplicação local com o comando ./mvnw quarkus:dev utilizamos o profile de dev e para o profile dev o valor padrao atribuido é o drop-and-create e por isso funciona na minha maquina e não no Heroku | |
| create | No Boot da aplicação sempre cria o Schema. | |
| drop | No Boot da aplicação sempre destroi o Schema | |
| update | No Boot da aplicação sempre atualiza o schema caso esteja diferente aplicação x banco. | |
| validate | Valida o Schema |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| heroku create quarkus-lirio | |
| #echo "quarkus.http.port=\${PORT:8080}" >> src/main/resources/application-prod.properties | |
| APP_NAME="quarkus-lirio" | |
| heroku container:login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @GET | |
| @Path("/spring") | |
| fun getListSpring(@QueryParam("lastname") lastname: String): Iterable<CustomerSpringDataEntity>? { | |
| return customerSpringDataRepository.findByLastname(lastname) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface CustomerSpringDataRepository : CrudRepository<CustomerSpringDataEntity, Long> { | |
| fun findByLastname(lastname: String): List<CustomerSpringDataEntity> | |
| } |