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
package com.example.demo; | |
import java.io.Serializable; | |
import java.util.Arrays; | |
import java.util.List; | |
import javax.persistence.CascadeType; | |
import javax.persistence.Embeddable; | |
import javax.persistence.EmbeddedId; | |
import javax.persistence.Entity; |
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
/* | |
* Projeto elaborado no vídeo do Youtube da série Fundamentos do Java: https://youtu.be/hyqgGPqHuKg | |
* Assunto: Tipos primitivos no Java | |
*/ | |
public class App { | |
public static void main(String[] args) { | |
// Tipos numéricos inteiros - byte, short, int, long | |
// int numero1 = 1; | |
// int numero2 = 2; | |
// int soma = numero1 + numero2; |
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
swagger: '2.0' | |
info: | |
title: TODO List | |
description: API de gerenciamento de tarefas. | |
version: '1.0.0' | |
schemes: | |
- https | |
basePath: /v1 | |
produces: | |
- application/json |
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
--- | |
openapi: 3.0.0 | |
servers: | |
- url: http://localhost:8080 | |
info: | |
description: 'API de funcionarios para testes de CORS.' | |
version: 1.0.0 | |
title: Funcionarios | |
x-wso2-basePath: /api/v1 | |
x-wso2-production-endpoints: '#/x-wso2-endpoints/dev' |
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
--- | |
openapi: 3.0.0 | |
servers: | |
- url: https://petstore.swagger.io/v2 | |
- url: http://petstore.swagger.io/v2 | |
info: | |
description: | |
'This is a sample server Petstore server. You can find out more about | |
Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For | |
this sample, you can use the api key `special-key` to test the authorization filters.' |
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
--- | |
openapi: 3.0.0 | |
servers: | |
- url: https://petstore.swagger.io/v2 | |
- url: http://petstore.swagger.io/v2 | |
info: | |
description: 'This is a sample server Petstore server. You can find out more about | |
Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For | |
this sample, you can use the api key `special-key` to test the authorization filters.' | |
version: 1.0.0 |
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
--- | |
openapi: 3.0.0 | |
servers: | |
- url: 'https://petstore3.swagger.io/api/v3' | |
info: | |
description: | |
'This is a sample server Petstore server. You can find out more about | |
Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For | |
this sample, you can use the api key `special-key` to test the authorization filters.' | |
version: 1.0.0 |
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
--- | |
openapi: 3.0.0 | |
servers: | |
- url: 'https://petstore3.swagger.io/api/v3' | |
info: | |
description: | |
'This is a sample server Petstore server. You can find out more about | |
Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For | |
this sample, you can use the api key `special-key` to test the authorization filters.' | |
version: 1.0.0 |
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
--- | |
openapi: 3.0.0 | |
servers: | |
- url: 'https://petstore3.swagger.io/api/v3' | |
info: | |
description: | |
'This is a sample server Petstore server. You can find out more about | |
Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For | |
this sample, you can use the api key `special-key` to test the authorization filters.' | |
version: 1.0.0 |
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
@Configuration | |
public class CompositeReaderConfig { | |
@Bean | |
public ItemReader<CustomerAccount> compositeReader(DataSource customerDS, | |
@Qualifier("accountDataSource") DataSource accountDS, PagingQueryProvider queryProvider) { | |
CompositeJdbcPagingItemReader<CustomerAccount> reader = new CompositeJdbcPagingItemReader<>(); | |
reader.setDataSource(accountDS); | |
reader.setPageSize(10); | |
reader.setQueryProvider(queryProvider); | |
reader.setRowMapper(new BeanPropertyRowMapper<>(CustomerAccount.class)); |
NewerOlder