├── .gitignore ├── Aulas ├── A Java Persistence Query Language (JPQL) │ └── crud-jpa-hibernate │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ ├── main │ │ ├── AtualizandoPrimeiroObjeto.java │ │ ├── ConsultaComJPQL.java │ │ ├── ConsultandoPrimeiroObjeto.java │ │ ├── RemovendoPrimeiroObjeto.java │ │ └── SalvandoPrimeiroObjeto.java │ │ └── modelo │ │ └── Cliente.java ├── Atualizando o banco de dados │ └── crud-jpa-hibernate │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ ├── main │ │ ├── AtualizandoPrimeiroObjeto.java │ │ ├── ConsultandoPrimeiroObjeto.java │ │ ├── RemovendoPrimeiroObjeto.java │ │ └── SalvandoPrimeiroObjeto.java │ │ └── modelo │ │ └── Cliente.java ├── Cache com Infinispan │ ├── docs │ │ └── configuracoes.txt │ └── gerenciador-acesso-com-cache │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── gerenciador │ │ │ │ ├── controller │ │ │ │ ├── CadastroUsuarioBean.java │ │ │ │ ├── PesquisaUsuarioBean.java │ │ │ │ └── SiteBean.java │ │ │ │ ├── converter │ │ │ │ └── UsuarioConverter.java │ │ │ │ ├── model │ │ │ │ ├── Grupo.java │ │ │ │ ├── Status.java │ │ │ │ └── Usuario.java │ │ │ │ └── util │ │ │ │ └── jpa │ │ │ │ └── EntityManagerProducer.java │ │ ├── resources │ │ │ ├── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── sql │ │ │ │ │ └── carregar-dados.sql │ │ │ ├── ehcache.xml │ │ │ └── log4j.properties │ │ └── webapp │ │ │ ├── CadastroUsuario.xhtml │ │ │ ├── META-INF │ │ │ └── context.xml │ │ │ ├── PesquisaUsuario.xhtml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── gerenciador │ │ │ └── util │ │ │ └── GeradorTabelas.java │ │ └── resources │ │ ├── dados │ │ ├── Grupo.xml │ │ ├── Usuario.xml │ │ └── UsuarioGrupo.xml │ │ ├── hibernate.properties │ │ └── jintegrity.properties ├── Cache com ehcache │ └── gerenciador-acesso-com-cache │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── gerenciador │ │ │ │ ├── controller │ │ │ │ ├── CadastroUsuarioBean.java │ │ │ │ ├── PesquisaUsuarioBean.java │ │ │ │ └── SiteBean.java │ │ │ │ ├── converter │ │ │ │ └── UsuarioConverter.java │ │ │ │ ├── model │ │ │ │ ├── Grupo.java │ │ │ │ ├── Status.java │ │ │ │ └── Usuario.java │ │ │ │ └── util │ │ │ │ └── jpa │ │ │ │ └── EntityManagerProducer.java │ │ ├── resources │ │ │ ├── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── sql │ │ │ │ │ └── carregar-dados.sql │ │ │ ├── ehcache.xml │ │ │ └── log4j.properties │ │ └── webapp │ │ │ ├── CadastroUsuario.xhtml │ │ │ ├── META-INF │ │ │ └── context.xml │ │ │ ├── PesquisaUsuario.xhtml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── gerenciador │ │ │ └── util │ │ │ └── GeradorTabelas.java │ │ └── resources │ │ ├── dados │ │ ├── Grupo.xml │ │ ├── Usuario.xml │ │ └── UsuarioGrupo.xml │ │ ├── hibernate.properties │ │ └── jintegrity.properties ├── Cache de colecoes │ └── gerenciador-acesso-com-cache │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── gerenciador │ │ │ │ ├── controller │ │ │ │ └── PesquisaUsuarioBean.java │ │ │ │ ├── model │ │ │ │ ├── Grupo.java │ │ │ │ ├── Status.java │ │ │ │ └── Usuario.java │ │ │ │ └── util │ │ │ │ └── jpa │ │ │ │ └── EntityManagerProducer.java │ │ ├── resources │ │ │ ├── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── sql │ │ │ │ │ └── carregar-dados.sql │ │ │ └── log4j.properties │ │ └── webapp │ │ │ ├── META-INF │ │ │ └── context.xml │ │ │ ├── PesquisaUsuario.xhtml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── gerenciador │ │ │ └── util │ │ │ └── GeradorTabelas.java │ │ └── resources │ │ ├── dados │ │ ├── Grupo.xml │ │ ├── Usuario.xml │ │ └── UsuarioGrupo.xml │ │ ├── hibernate.properties │ │ └── jintegrity.properties ├── Cache de primeiro nivel │ └── CachePrimeiroNivel.java ├── Cache de queries │ └── gerenciador-acesso-com-cache │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── gerenciador │ │ │ │ ├── controller │ │ │ │ ├── CadastroUsuarioBean.java │ │ │ │ ├── PesquisaUsuarioBean.java │ │ │ │ └── SiteBean.java │ │ │ │ ├── converter │ │ │ │ └── UsuarioConverter.java │ │ │ │ ├── model │ │ │ │ ├── Grupo.java │ │ │ │ ├── Status.java │ │ │ │ └── Usuario.java │ │ │ │ └── util │ │ │ │ └── jpa │ │ │ │ └── EntityManagerProducer.java │ │ ├── resources │ │ │ ├── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── sql │ │ │ │ │ └── carregar-dados.sql │ │ │ └── log4j.properties │ │ └── webapp │ │ │ ├── CadastroUsuario.xhtml │ │ │ ├── META-INF │ │ │ └── context.xml │ │ │ ├── PesquisaUsuario.xhtml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── gerenciador │ │ │ └── util │ │ │ └── GeradorTabelas.java │ │ └── resources │ │ ├── dados │ │ ├── Grupo.xml │ │ ├── Usuario.xml │ │ └── UsuarioGrupo.xml │ │ ├── hibernate.properties │ │ └── jintegrity.properties ├── Cadastrando o primeiro objeto │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ └── CadastroFabricanteBean.java │ │ │ ├── dao │ │ │ └── FabricanteDAO.java │ │ │ ├── modelo │ │ │ └── Fabricante.java │ │ │ ├── service │ │ │ ├── CadastroFabricanteService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── fabricante │ │ └── CadastroFabricante.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Ciclo de vida e Estados dos Objetos │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroFuncionarioBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── CadastroMotoristaBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ └── PesquisaMotoristaBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ ├── FuncionarioConverter.java │ │ │ ├── ModeloCarroConverter.java │ │ │ └── MotoristaConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ ├── FuncionarioDAO.java │ │ │ ├── ModeloCarroDAO.java │ │ │ └── MotoristaDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── Funcionario.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ ├── Pessoa.java │ │ │ └── Sexo.java │ │ │ ├── modelolazy │ │ │ └── LazyCarroDataModel.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroFuncionarioService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ ├── CadastroMotoristaService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── funcionario │ │ ├── CadastroFuncionario.xhtml │ │ └── PesquisaFuncionarios.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ ├── motorista │ │ ├── CadastroMotorista.xhtml │ │ └── PesquisaMotoristas.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Colecoes com objetos embutidos │ └── mais-exemplos │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── main │ │ ├── ConsultaObjetosEmbutidos.java │ │ └── ExemploObjetosEmbutidos.java │ │ ├── modelo │ │ ├── Proprietario.java │ │ └── Telefone.java │ │ └── util │ │ └── JPAUtil.java ├── Colecoes de tipos basicos │ └── mais-exemplos │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── main │ │ ├── ConsultaTiposBasicos.java │ │ └── ExemploTiposBasicos.java │ │ ├── modelo │ │ └── Proprietario.java │ │ └── util │ │ └── JPAUtil.java ├── Consulta com Criteria │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroFuncionarioBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── CadastroMotoristaBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaAluguelBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ └── PesquisaMotoristaBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ ├── FuncionarioConverter.java │ │ │ ├── ModeloCarroConverter.java │ │ │ └── MotoristaConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ ├── FuncionarioDAO.java │ │ │ ├── ModeloCarroDAO.java │ │ │ └── MotoristaDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── Funcionario.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ ├── Pessoa.java │ │ │ └── Sexo.java │ │ │ ├── modelolazy │ │ │ └── LazyCarroDataModel.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroFuncionarioService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ ├── CadastroMotoristaService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ ├── NovoAluguel.xhtml │ │ └── PesquisaAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── funcionario │ │ ├── CadastroFuncionario.xhtml │ │ └── PesquisaFuncionarios.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ ├── motorista │ │ ├── CadastroMotorista.xhtml │ │ └── PesquisaMotoristas.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Consultas nativas │ └── ConsultasNativas.java ├── Criando DAO Generico │ └── pedidos-venda │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── pedidovenda │ │ │ │ ├── controller │ │ │ │ ├── CadastroPedidoBean.java │ │ │ │ ├── EntregasPendentesBean.java │ │ │ │ ├── PesquisaPedidoBean.java │ │ │ │ └── ValorVendasPorDiaBean.java │ │ │ │ ├── converter │ │ │ │ └── PedidoConverter.java │ │ │ │ ├── dao │ │ │ │ ├── GenericDAO.java │ │ │ │ ├── ItemPedidoDAO.java │ │ │ │ ├── PedidoDAO.java │ │ │ │ ├── hibernate │ │ │ │ │ ├── HibernateGenericDAO.java │ │ │ │ │ ├── HibernateItemPedidoDAO.java │ │ │ │ │ └── HibernatePedidoDAO.java │ │ │ │ └── vo │ │ │ │ │ └── ValorTotalVendaDoDia.java │ │ │ │ ├── model │ │ │ │ ├── Entrega.java │ │ │ │ ├── ItemPedido.java │ │ │ │ └── Pedido.java │ │ │ │ ├── service │ │ │ │ └── PedidoService.java │ │ │ │ └── util │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ ├── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── sql │ │ │ │ │ └── carregar-dados.sql │ │ │ └── log4j.properties │ │ └── webapp │ │ │ ├── CadastroPedido.xhtml │ │ │ ├── EntregasPendentes.xhtml │ │ │ ├── META-INF │ │ │ └── context.xml │ │ │ ├── PesquisaPedido.xhtml │ │ │ ├── ValorVendasPorDia.xhtml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ ├── java │ │ └── .gitkeep │ │ └── resources │ │ └── .gitkeep ├── Criando primeiras tabelas no MySQL │ └── primeiras_tabelas.ddl ├── Criando projeto do curso │ └── locadora-veiculo-web │ │ ├── .metadata │ │ └── src │ │ │ └── main │ │ │ └── webapp │ │ │ └── WEB-INF │ │ │ └── faces-config.pageflow │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Entendendo paginacao │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroFuncionarioBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── CadastroMotoristaBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ └── PesquisaMotoristaBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ ├── FuncionarioConverter.java │ │ │ ├── ModeloCarroConverter.java │ │ │ └── MotoristaConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ ├── FuncionarioDAO.java │ │ │ ├── ModeloCarroDAO.java │ │ │ └── MotoristaDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── Funcionario.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ ├── Pessoa.java │ │ │ └── Sexo.java │ │ │ ├── modelolazy │ │ │ └── LazyCarroDataModel.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroFuncionarioService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ ├── CadastroMotoristaService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── funcionario │ │ ├── CadastroFuncionario.xhtml │ │ └── PesquisaFuncionarios.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ ├── motorista │ │ ├── CadastroMotorista.xhtml │ │ └── PesquisaMotoristas.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Entendendo um pouco mais da transacao │ └── banco-tabajara │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ ├── main │ │ └── Transferencia.java │ │ └── modelo │ │ └── Conta.java ├── Exclusao com Many-To-Many │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ └── PesquisaMotoristaBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── cdi │ │ │ │ ├── CDIServiceLocator.java │ │ │ │ ├── ViewContextExtension.java │ │ │ │ └── ViewScopedContext.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── services │ │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ └── PesquisaAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ └── java │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ └── criteria │ │ ├── ExemplosCascata.java │ │ ├── ExemplosCriteria.java │ │ └── PrecoCarro.java ├── Exemplo Lazy OneToOne │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── exemplo │ │ │ │ └── modelo │ │ │ │ ├── Endereco.java │ │ │ │ └── Usuario.java │ │ └── resources │ │ │ ├── META-INF │ │ │ └── persistence.xml │ │ │ └── log4j.properties │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── exemplo │ │ │ ├── TestesConsultas.java │ │ │ └── util │ │ │ └── GerarTabelas.java │ │ └── resources │ │ ├── dados │ │ ├── Endereco.xml │ │ └── Usuario.xml │ │ ├── hibernate.properties │ │ └── jintegrity.properties ├── Exemplo lock otimista │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── exemplo │ │ │ └── lock │ │ │ └── otimista │ │ │ ├── controller │ │ │ └── CadastroUsuarioBean.java │ │ │ ├── dao │ │ │ └── UsuarioDAO.java │ │ │ ├── exception │ │ │ └── NegocioException.java │ │ │ ├── model │ │ │ └── Usuario.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Fazendo Join entre entidades │ ├── consultas-locadora-veiculo │ │ └── src │ │ │ ├── META-INF │ │ │ └── persistence.xml │ │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── consultas │ │ │ ├── ConsultaAcessorioPorModeloCarro.java │ │ │ ├── ConsultaDescricaoECategoriaDeModeloCarro.java │ │ │ ├── ConsultaFabricantes.java │ │ │ ├── ConsultaFabricantesPeloModeloCarro.java │ │ │ ├── ConsultaModeloFiltrandoFabricante.java │ │ │ └── ConsultaModeloFiltroEmFabricanteECategoria.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── Funcionario.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ ├── Pessoa.java │ │ │ └── Sexo.java │ │ │ └── util │ │ │ └── JPAUtil.java │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroFuncionarioBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── CadastroMotoristaBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ └── PesquisaMotoristaBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ ├── FuncionarioConverter.java │ │ │ ├── ModeloCarroConverter.java │ │ │ └── MotoristaConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ ├── FuncionarioDAO.java │ │ │ ├── ModeloCarroDAO.java │ │ │ └── MotoristaDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── Funcionario.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ ├── Pessoa.java │ │ │ └── Sexo.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroFuncionarioService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ ├── CadastroMotoristaService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── funcionario │ │ ├── CadastroFuncionario.xhtml │ │ └── PesquisaFuncionarios.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ ├── motorista │ │ ├── CadastroMotorista.xhtml │ │ └── PesquisaMotoristas.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Fechando o Entity Manager │ └── crud-jpa-hibernate │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ ├── main │ │ ├── AtualizandoPrimeiroObjeto.java │ │ ├── ConsultaComJPQL.java │ │ ├── ConsultandoPrimeiroObjeto.java │ │ ├── RemovendoPrimeiroObjeto.java │ │ └── SalvandoPrimeiroObjeto.java │ │ └── modelo │ │ └── Cliente.java ├── Filtrando resultados │ ├── crud-jpa-hibernate │ │ └── src │ │ │ ├── META-INF │ │ │ └── persistence.xml │ │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ ├── main │ │ │ ├── AtualizandoPrimeiroObjeto.java │ │ │ ├── ConsultaComJPQL.java │ │ │ ├── ConsultandoPrimeiroObjeto.java │ │ │ ├── RemovendoPrimeiroObjeto.java │ │ │ └── SalvandoPrimeiroObjeto.java │ │ │ ├── modelo │ │ │ └── Cliente.java │ │ │ └── util │ │ │ └── jpa │ │ │ └── JPAUtil.java │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroFuncionarioBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── CadastroMotoristaBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ └── PesquisaMotoristaBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ ├── FuncionarioConverter.java │ │ │ ├── ModeloCarroConverter.java │ │ │ └── MotoristaConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ ├── FuncionarioDAO.java │ │ │ ├── ModeloCarroDAO.java │ │ │ └── MotoristaDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── Funcionario.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ ├── Pessoa.java │ │ │ └── Sexo.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroFuncionarioService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ ├── CadastroMotoristaService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── funcionario │ │ ├── CadastroFuncionario.xhtml │ │ └── PesquisaFuncionarios.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ ├── motorista │ │ ├── CadastroMotorista.xhtml │ │ └── PesquisaMotoristas.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Funcoes de agregacao │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ └── PesquisaMotoristaBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── cdi │ │ │ │ ├── CDIServiceLocator.java │ │ │ │ ├── ViewContextExtension.java │ │ │ │ └── ViewScopedContext.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── services │ │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ └── PesquisaAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ └── java │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ └── criteria │ │ └── ExemplosCriteria.java ├── Funcoes │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ └── PesquisaMotoristaBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── cdi │ │ │ │ ├── CDIServiceLocator.java │ │ │ │ ├── ViewContextExtension.java │ │ │ │ └── ViewScopedContext.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── services │ │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ └── PesquisaAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ └── java │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ └── criteria │ │ ├── ExemplosCriteria.java │ │ └── PrecoCarro.java ├── Hibernate Criteria - DetachedCriteria e isNotNull │ ├── CarroDAO.java │ ├── CarrosNuncaAlugados.xhtml │ └── PesquisaCarrosNuncaAlugadosBean.java ├── Hibernate Criteria - Intro, eq e between │ ├── AluguelDAO.java │ ├── PesquisaAluguelBean.java │ └── PesquisaAluguelCriteria.xhtml ├── Hibernate Criteria - LazyLoading e setFetchMode │ └── SimlandoLazyLoading.java ├── Hibernate Criteria - ProjectionList, GroupBy e OrderBy │ ├── CarroDAO.java │ ├── RelatorioTotalAlgueisPorCarroBean.java │ ├── TotalAlugueisPorCarro.xhtml │ └── TotalDeAlugueisPorCarro.java ├── Hibernate Criteria - ilike │ └── ConsultaCarroPorFabricante.java ├── Hibernate Criteria - sum e sqlRestriction │ ├── AluguelDAO.java │ ├── RelatorioAluguelBean.java │ └── TotalGanhoAlugueisNoMes.xhtml ├── Implementando a consulta e exclusao │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroFabricanteBean.java │ │ │ └── PesquisaFabricanteBean.java │ │ │ ├── dao │ │ │ └── FabricanteDAO.java │ │ │ ├── modelo │ │ │ └── Fabricante.java │ │ │ ├── service │ │ │ ├── CadastroFabricanteService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Implementando a edicao │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroFabricanteBean.java │ │ │ └── PesquisaFabricanteBean.java │ │ │ ├── converter │ │ │ └── FabricanteConverter.java │ │ │ ├── dao │ │ │ └── FabricanteDAO.java │ │ │ ├── modelo │ │ │ └── Fabricante.java │ │ │ ├── service │ │ │ ├── CadastroFabricanteService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Implementando mais uma consulta │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ └── PesquisaModeloCarroBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ └── ModeloCarroDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Fabricante.java │ │ │ └── ModeloCarro.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Importando um projeto do GitHub │ └── primeiro-projeto-jsf │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── jsf │ │ │ └── MeuBean.java │ │ ├── resources │ │ └── META-INF │ │ │ └── beans.xml │ │ └── webapp │ │ ├── OlaJSF.xhtml │ │ └── WEB-INF │ │ ├── faces-config.xml │ │ └── web.xml ├── Inicializacao tardia (Lazy) e ansiosa (Eager) │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ └── PesquisaModeloCarroBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ └── ModeloCarroDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Fabricante.java │ │ │ └── ModeloCarro.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Introducao Java Persistence Query Language │ └── consultas-locadora-veiculo │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── consultas │ │ └── ConsultaFabricantes.java │ │ ├── modelo │ │ ├── Acessorio.java │ │ ├── Aluguel.java │ │ ├── ApoliceSeguro.java │ │ ├── Carro.java │ │ ├── Categoria.java │ │ ├── Fabricante.java │ │ ├── Funcionario.java │ │ ├── ModeloCarro.java │ │ ├── Motorista.java │ │ ├── Pessoa.java │ │ └── Sexo.java │ │ └── util │ │ └── JPAUtil.java ├── Introducao cache de segundo nivel │ └── nota-fiscal-com-cache │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── notafiscal │ │ │ │ ├── controller │ │ │ │ ├── CadastroCidadeBean.java │ │ │ │ ├── CadastroEstadoBean.java │ │ │ │ ├── CadastroNFeBean.java │ │ │ │ └── PesquisaCidadeBean.java │ │ │ │ ├── converter │ │ │ │ ├── CidadeConverter.java │ │ │ │ └── EstadoConverter.java │ │ │ │ ├── model │ │ │ │ ├── Cidade.java │ │ │ │ ├── Estado.java │ │ │ │ └── NFe.java │ │ │ │ ├── repository │ │ │ │ ├── Cidades.java │ │ │ │ ├── Estados.java │ │ │ │ ├── NotasFiscais.java │ │ │ │ └── hibernate │ │ │ │ │ ├── HibernateCidades.java │ │ │ │ │ ├── HibernateEstados.java │ │ │ │ │ └── HibernateNotasFiscais.java │ │ │ │ └── util │ │ │ │ ├── estatistica │ │ │ │ ├── Entidade.java │ │ │ │ └── Estatistica.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ └── persistence.xml │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── cidade │ │ │ ├── CadastroCidade.xhtml │ │ │ └── PesquisaCidade.xhtml │ │ │ ├── estado │ │ │ └── CadastroEstado.xhtml │ │ │ ├── nfe │ │ │ └── NovaNFe.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ ├── java │ │ └── .gitkeep │ │ └── resources │ │ └── jintegrity.properties ├── JPA 2.1 - ConstructorResult │ ├── Alert.xml │ ├── AlertasPorUsuario.java │ ├── ConstructorResultTest.java │ └── ddl.sql ├── JPA 2.1 - Converters │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── model │ │ │ │ ├── Usuario.java │ │ │ │ └── util │ │ │ │ └── LocalDateConverter.java │ │ └── resources │ │ │ ├── META-INF │ │ │ └── persistence.xml │ │ │ └── log4j.properties │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ ├── model │ │ │ └── UsuarioPersistenceTest.java │ │ │ └── util │ │ │ └── GerarTabelas.java │ │ └── resources │ │ ├── dados │ │ └── Usuario.xml │ │ ├── hibernate.properties │ │ └── jintegrity.properties ├── JPA 2.1 - Criando o Schema │ ├── Usuario.java │ ├── persistence.xml │ └── sql │ │ ├── carregar-dados.sql │ │ ├── criar-tabelas.sql │ │ └── dropar-tabelas.sql ├── JPA 2.1 - CriteriaUpdate e CriteriaDelete │ ├── Fatura.java │ ├── Fatura.xml │ └── FaturaPersistenceTest.java ├── Join e Fetch │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ └── PesquisaMotoristaBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── cdi │ │ │ │ ├── CDIServiceLocator.java │ │ │ │ ├── ViewContextExtension.java │ │ │ │ └── ViewScopedContext.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── services │ │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ └── PesquisaAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ └── java │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ └── criteria │ │ ├── ExemplosCriteria.java │ │ └── PrecoCarro.java ├── Lock pessimista │ └── exemplo-locks │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── lock │ │ │ │ └── model │ │ │ │ ├── Cliente.java │ │ │ │ └── Conta.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── persistence.xml │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── lock │ │ │ ├── test │ │ │ └── LockPessimistaTest.java │ │ │ └── util │ │ │ └── GeradorTabelas.java │ │ └── resources │ │ ├── dados │ │ ├── Cliente.xml │ │ ├── Conta.xml │ │ └── ContaCliente.xml │ │ ├── hibernate.properties │ │ └── jintegrity.properties ├── Mapeando chaves compostas │ └── mais-exemplos │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── main │ │ └── ExemploChaveComposta.java │ │ ├── modelo │ │ ├── Veiculo.java │ │ └── VeiculoId.java │ │ └── util │ │ └── JPAUtil.java ├── Mapeando datas │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ └── PesquisaModeloCarroBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ └── ModeloCarroDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ └── ModeloCarro.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Mapeando enumeracoes │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ └── PesquisaModeloCarroBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ └── ModeloCarroDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ └── ModeloCarro.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Mapeando heranca com tabela unica │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── CadastroMotoristaBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ └── PesquisaMotoristaBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ ├── ModeloCarroDAO.java │ │ │ └── MotoristaDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ └── Pessoa.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ ├── CadastroMotoristaService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ ├── motorista │ │ ├── CadastroMotorista.xhtml │ │ └── PesquisaMotoristas.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Mapeando objetos embutidos │ └── mais-exemplos │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── main │ │ ├── ExemploChaveComposta.java │ │ └── ExemploObjetoEmbutido.java │ │ ├── modelo │ │ ├── Proprietario.java │ │ ├── Veiculo.java │ │ └── VeiculoId.java │ │ └── util │ │ └── JPAUtil.java ├── Metamodel │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ └── PesquisaMotoristaBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── cdi │ │ │ │ ├── CDIServiceLocator.java │ │ │ │ ├── ViewContextExtension.java │ │ │ │ └── ViewScopedContext.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── services │ │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ └── PesquisaAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ └── java │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ └── criteria │ │ ├── ExemplosCriteria.java │ │ └── PrecoCarro.java ├── Multi-Tenancy com Banco de dados separados │ └── gerenciador-acesso │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── gerenciador │ │ │ │ ├── controller │ │ │ │ ├── CadastroUsuarioBean.java │ │ │ │ ├── PesquisaUsuarioBean.java │ │ │ │ └── SiteBean.java │ │ │ │ ├── converter │ │ │ │ └── UsuarioConverter.java │ │ │ │ ├── model │ │ │ │ ├── Grupo.java │ │ │ │ ├── Status.java │ │ │ │ └── Usuario.java │ │ │ │ └── util │ │ │ │ └── jpa │ │ │ │ ├── HibernateSessionProducer.java │ │ │ │ ├── Tenant.java │ │ │ │ ├── TenantInject.java │ │ │ │ └── TenantProducer.java │ │ ├── resources │ │ │ ├── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── sql │ │ │ │ │ └── carregar-dados.sql │ │ │ └── log4j.properties │ │ └── webapp │ │ │ ├── CadastroUsuario.xhtml │ │ │ ├── META-INF │ │ │ └── context.xml │ │ │ ├── PesquisaUsuario.xhtml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── gerenciador │ │ │ └── util │ │ │ └── GeradorTabelas.java │ │ └── resources │ │ ├── .gitkeep │ │ ├── dados │ │ ├── Grupo.xml │ │ ├── Usuario.xml │ │ └── UsuarioGrupo.xml │ │ ├── hibernate.properties │ │ └── jintegrity.properties ├── Multi-Tenancy com schema separado │ └── gerenciador-acesso │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── gerenciador │ │ │ │ ├── controller │ │ │ │ ├── CadastroUsuarioBean.java │ │ │ │ ├── PesquisaUsuarioBean.java │ │ │ │ └── SiteBean.java │ │ │ │ ├── converter │ │ │ │ └── UsuarioConverter.java │ │ │ │ ├── model │ │ │ │ ├── Grupo.java │ │ │ │ ├── Status.java │ │ │ │ └── Usuario.java │ │ │ │ └── util │ │ │ │ └── jpa │ │ │ │ ├── HibernateSessionProducer.java │ │ │ │ ├── MultiTenantProvider.java │ │ │ │ ├── Tenant.java │ │ │ │ ├── TenantInject.java │ │ │ │ └── TenantProducer.java │ │ ├── resources │ │ │ ├── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── sql │ │ │ │ │ └── carregar-dados.sql │ │ │ └── log4j.properties │ │ └── webapp │ │ │ ├── CadastroUsuario.xhtml │ │ │ ├── META-INF │ │ │ └── context.xml │ │ │ ├── PesquisaUsuario.xhtml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── gerenciador │ │ │ └── util │ │ │ └── GeradorTabelas.java │ │ └── resources │ │ ├── dados │ │ ├── Grupo.xml │ │ ├── Usuario.xml │ │ └── UsuarioGrupo.xml │ │ ├── hibernate.properties │ │ └── jintegrity.properties ├── Named queries em arquivos externos │ └── financeiro-exemplo │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── financeiro │ │ │ │ └── model │ │ │ │ ├── Lancamento.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── TipoLancamento.java │ │ └── resources │ │ │ ├── META-INF │ │ │ ├── consultas │ │ │ │ ├── lancamentos.xml │ │ │ │ └── pessoas.xml │ │ │ ├── persistence.xml │ │ │ └── sql │ │ │ │ └── carregar-dados.sql │ │ │ └── log4j.properties │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── financeiro │ │ │ └── model │ │ │ ├── LancamentoTest.java │ │ │ └── PessoaTest.java │ │ └── resources │ │ └── jintegrity.properties ├── O pattern DAO │ └── pedidos-venda │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── pedidovenda │ │ │ │ ├── controller │ │ │ │ ├── CadastroPedidoBean.java │ │ │ │ ├── EntregasPendentesBean.java │ │ │ │ ├── PesquisaPedidoBean.java │ │ │ │ └── ValorVendasPorDiaBean.java │ │ │ │ ├── converter │ │ │ │ └── PedidoConverter.java │ │ │ │ ├── dao │ │ │ │ ├── ItemPedidoDAO.java │ │ │ │ ├── PedidoDAO.java │ │ │ │ └── vo │ │ │ │ │ └── ValorTotalVendaDoDia.java │ │ │ │ ├── model │ │ │ │ ├── Entrega.java │ │ │ │ ├── ItemPedido.java │ │ │ │ └── Pedido.java │ │ │ │ ├── service │ │ │ │ └── PedidoService.java │ │ │ │ └── util │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ ├── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── sql │ │ │ │ │ └── carregar-dados.sql │ │ │ └── log4j.properties │ │ └── webapp │ │ │ ├── CadastroPedido.xhtml │ │ │ ├── EntregasPendentes.xhtml │ │ │ ├── META-INF │ │ │ └── context.xml │ │ │ ├── PesquisaPedido.xhtml │ │ │ ├── ValorVendasPorDia.xhtml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ ├── java │ │ └── .gitkeep │ │ └── resources │ │ └── .gitkeep ├── O pattern Repository │ └── pedidos-venda │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── pedidovenda │ │ │ ├── controller │ │ │ ├── CadastroPedidoBean.java │ │ │ ├── EntregasPendentesBean.java │ │ │ ├── PesquisaPedidoBean.java │ │ │ └── ValorVendasPorDiaBean.java │ │ │ ├── converter │ │ │ └── PedidoConverter.java │ │ │ ├── dao │ │ │ ├── PedidoFiltro.java │ │ │ ├── Pedidos.java │ │ │ ├── hibernate │ │ │ │ └── HibernatePedidos.java │ │ │ └── vo │ │ │ │ └── ValorTotalVendaDoDia.java │ │ │ ├── model │ │ │ ├── Entrega.java │ │ │ ├── ItemPedido.java │ │ │ └── Pedido.java │ │ │ ├── service │ │ │ └── PedidoService.java │ │ │ └── util │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ ├── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── sql │ │ │ │ └── carregar-dados.sql │ │ └── log4j.properties │ │ └── webapp │ │ ├── CadastroPedido.xhtml │ │ ├── EntregasPendentes.xhtml │ │ ├── META-INF │ │ └── context.xml │ │ ├── PesquisaPedido.xhtml │ │ ├── ValorVendasPorDia.xhtml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── O que e API Criteria │ └── crud-jpa-hibernate │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ ├── main │ │ ├── AtualizandoPrimeiroObjeto.java │ │ ├── ConsultaComCriteria.java │ │ ├── ConsultaComJPQL.java │ │ ├── ConsultandoPrimeiroObjeto.java │ │ ├── RemovendoPrimeiroObjeto.java │ │ ├── SalvandoPrimeiroObjeto.java │ │ └── TesteDoCicloDeVida.java │ │ ├── modelo │ │ └── Cliente.java │ │ └── util │ │ └── jpa │ │ └── JPAUtil.java ├── Objetos grandes │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ └── PesquisaMotoristaBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesMessages.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── services │ │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ └── PesquisaAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ └── java │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ └── criteria │ │ ├── ExemplosCascata.java │ │ ├── ExemplosCriteria.java │ │ └── PrecoCarro.java ├── One to one Lazy - com anotacoes │ └── problema-lazy-one-to-one │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── exemplo │ │ │ │ └── modelo │ │ │ │ ├── Endereco.java │ │ │ │ └── Usuario.java │ │ └── resources │ │ │ ├── META-INF │ │ │ └── persistence.xml │ │ │ └── log4j.properties │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── exemplo │ │ │ ├── TestesConsultas.java │ │ │ └── util │ │ │ └── GeradorTabelas.java │ │ └── resources │ │ ├── dados │ │ ├── Endereco.xml │ │ └── Usuario.xml │ │ ├── hibernate.properties │ │ └── jintegrity.properties ├── One to one lazy - com instrumentacao │ └── problema-lazy-one-to-one │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── exemplo │ │ │ │ └── modelo │ │ │ │ ├── Endereco.java │ │ │ │ └── Usuario.java │ │ └── resources │ │ │ ├── META-INF │ │ │ └── persistence.xml │ │ │ └── log4j.properties │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── exemplo │ │ │ ├── TestesConsultas.java │ │ │ └── util │ │ │ └── GeradorTabelas.java │ │ └── resources │ │ ├── dados │ │ ├── Endereco.xml │ │ └── Usuario.xml │ │ ├── hibernate.properties │ │ └── jintegrity.properties ├── Ordenacao de resultado │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ └── PesquisaMotoristaBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── cdi │ │ │ │ ├── CDIServiceLocator.java │ │ │ │ ├── ViewContextExtension.java │ │ │ │ └── ViewScopedContext.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── services │ │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ └── PesquisaAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ └── java │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ └── criteria │ │ ├── ExemplosCriteria.java │ │ └── PrecoCarro.java ├── Passando parametros para queries │ └── consultas-locadora-veiculo │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── consultas │ │ ├── ConsultaAcessorioPorModeloCarro.java │ │ ├── ConsultaDescricaoECategoriaDeModeloCarro.java │ │ ├── ConsultaFabricantes.java │ │ ├── ConsultaFabricantesPeloModeloCarro.java │ │ ├── ConsultaModeloFiltrandoFabricante.java │ │ ├── ConsultaModeloFiltroEmFabricanteECategoria.java │ │ ├── ConsultaPassandoParametros.java │ │ └── ConsultasAgregadasEmCarro.java │ │ ├── modelo │ │ ├── Acessorio.java │ │ ├── Aluguel.java │ │ ├── ApoliceSeguro.java │ │ ├── Carro.java │ │ ├── Categoria.java │ │ ├── Fabricante.java │ │ ├── Funcionario.java │ │ ├── ModeloCarro.java │ │ ├── Motorista.java │ │ ├── Pessoa.java │ │ └── Sexo.java │ │ └── util │ │ └── JPAUtil.java ├── Pool de conexoes com c3p0 │ └── datasource.txt ├── Primeira consulta com JPA │ └── crud-jpa-hibernate │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ ├── main │ │ ├── ConsultandoPrimeiroObjeto.java │ │ └── SalvandoPrimeiroObjeto.java │ │ └── modelo │ │ └── Cliente.java ├── Problema N mais 1 │ └── ProblemaNMaisUm.java ├── Procedures │ └── exemplo-procedures │ │ ├── docs │ │ └── script.sql │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── procedure │ │ │ │ └── AnalisadorPedido.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── persistence.xml │ │ └── test │ │ ├── java │ │ └── .gitkeep │ │ └── resources │ │ └── .gitkeep ├── Projecoes │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ └── PesquisaMotoristaBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── cdi │ │ │ │ ├── CDIServiceLocator.java │ │ │ │ ├── ViewContextExtension.java │ │ │ │ └── ViewScopedContext.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── services │ │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ └── PesquisaAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ └── java │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ └── criteria │ │ └── ExemplosCriteria.java ├── Projeto atualizado │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── FotoCarroBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ ├── PesquisaMotoristaBean.java │ │ │ │ └── TotalMesAluguelBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesMessages.java │ │ ├── resources │ │ │ ├── META-INF │ │ │ │ ├── beans.xml │ │ │ │ └── persistence.xml │ │ │ └── log4j.xml │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ ├── PesquisaAluguel.xhtml │ │ │ ├── PesquisaAluguelCriteria.xhtml │ │ │ └── TotalMesAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ └── criteria │ │ │ ├── CarModelTemp.java │ │ │ ├── ExemplosCascata.java │ │ │ ├── ExemplosCriteria.java │ │ │ └── PrecoCarro.java │ │ └── resources │ │ └── .gitkeep ├── Propriedades transientes │ └── mais-exemplos │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── main │ │ ├── ExemploChaveComposta.java │ │ ├── ExemploObjetoEmbutido.java │ │ └── ExemploPropriedadeTransiente.java │ │ ├── modelo │ │ ├── Proprietario.java │ │ ├── Veiculo.java │ │ └── VeiculoId.java │ │ └── util │ │ └── JPAUtil.java ├── Relacionamento Muitos-Para-Muitos │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ └── PesquisaModeloCarroBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ └── ModeloCarroDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Carro.java │ │ │ ├── Fabricante.java │ │ │ └── ModeloCarro.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── carro │ │ └── CadastroCarro.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Relacionamento Muitos-Para-Um │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ └── PesquisaFabricanteBean.java │ │ │ ├── converter │ │ │ └── FabricanteConverter.java │ │ │ ├── dao │ │ │ ├── FabricanteDAO.java │ │ │ └── ModeloCarroDAO.java │ │ │ ├── modelo │ │ │ ├── Fabricante.java │ │ │ └── ModeloCarro.java │ │ │ ├── service │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ └── CadastroModeloCarro.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Relacionamento Um-Para-Muitos │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ └── PesquisaModeloCarroBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ └── ModeloCarroDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Fabricante.java │ │ │ └── ModeloCarro.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ └── CadastroCarro.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Relacionamento Um-Para-Um │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ └── PesquisaModeloCarroBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ └── ModeloCarroDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Fabricante.java │ │ │ └── ModeloCarro.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ └── CadastroCarro.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Removendo objeto do banco de dados │ └── crud-jpa-hibernate │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ ├── main │ │ ├── ConsultandoPrimeiroObjeto.java │ │ ├── RemovendoPrimeiroObjeto.java │ │ └── SalvandoPrimeiroObjeto.java │ │ └── modelo │ │ └── Cliente.java ├── Resultados complexos tuplas e construtores │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ └── PesquisaMotoristaBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── cdi │ │ │ │ ├── CDIServiceLocator.java │ │ │ │ ├── ViewContextExtension.java │ │ │ │ └── ViewScopedContext.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── services │ │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ └── PesquisaAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ └── java │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ └── criteria │ │ ├── ExemplosCriteria.java │ │ └── PrecoCarro.java ├── Salvando o primeiro objeto no Banco de Dados │ └── crud-jpa-hibernate │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ ├── main │ │ └── SalvandoPrimeiroObjeto.java │ │ └── modelo │ │ └── Cliente.java ├── Selecionando uma entidade de uma entidade │ └── consultas-locadora-veiculo │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── consultas │ │ ├── ConsultaFabricantes.java │ │ └── ConsultaFabricantesPeloModeloCarro.java │ │ ├── modelo │ │ ├── Acessorio.java │ │ ├── Aluguel.java │ │ ├── ApoliceSeguro.java │ │ ├── Carro.java │ │ ├── Categoria.java │ │ ├── Fabricante.java │ │ ├── Funcionario.java │ │ ├── ModeloCarro.java │ │ ├── Motorista.java │ │ ├── Pessoa.java │ │ └── Sexo.java │ │ └── util │ │ └── JPAUtil.java ├── Subqueries │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ └── PesquisaMotoristaBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── cdi │ │ │ │ ├── CDIServiceLocator.java │ │ │ │ ├── ViewContextExtension.java │ │ │ │ └── ViewScopedContext.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── services │ │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ └── PesquisaAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ └── java │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ └── criteria │ │ ├── ExemplosCriteria.java │ │ └── PrecoCarro.java ├── Testes com jUnit DBUnit e JIntegrity │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── curso │ │ │ │ └── jpa2 │ │ │ │ ├── controller │ │ │ │ ├── CadastroAcessorioBean.java │ │ │ │ ├── CadastroCarroBean.java │ │ │ │ ├── CadastroFabricanteBean.java │ │ │ │ ├── CadastroFuncionarioBean.java │ │ │ │ ├── CadastroModeloCarroBean.java │ │ │ │ ├── CadastroMotoristaBean.java │ │ │ │ ├── NovoAluguelBean.java │ │ │ │ ├── PesquisaAcessorioBean.java │ │ │ │ ├── PesquisaAluguelBean.java │ │ │ │ ├── PesquisaCarroBean.java │ │ │ │ ├── PesquisaFabricanteBean.java │ │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ │ └── PesquisaMotoristaBean.java │ │ │ │ ├── converter │ │ │ │ ├── AcessorioConverter.java │ │ │ │ ├── CarroConverter.java │ │ │ │ ├── FabricanteConverter.java │ │ │ │ ├── FuncionarioConverter.java │ │ │ │ ├── ModeloCarroConverter.java │ │ │ │ └── MotoristaConverter.java │ │ │ │ ├── dao │ │ │ │ ├── AcessorioDAO.java │ │ │ │ ├── AluguelDAO.java │ │ │ │ ├── ApoliceSeguroDAO.java │ │ │ │ ├── CarroDAO.java │ │ │ │ ├── FabricanteDAO.java │ │ │ │ ├── FuncionarioDAO.java │ │ │ │ ├── ModeloCarroDAO.java │ │ │ │ └── MotoristaDAO.java │ │ │ │ ├── modelo │ │ │ │ ├── Acessorio.java │ │ │ │ ├── Aluguel.java │ │ │ │ ├── ApoliceSeguro.java │ │ │ │ ├── Carro.java │ │ │ │ ├── Categoria.java │ │ │ │ ├── Fabricante.java │ │ │ │ ├── Funcionario.java │ │ │ │ ├── ModeloCarro.java │ │ │ │ ├── Motorista.java │ │ │ │ ├── Pessoa.java │ │ │ │ └── Sexo.java │ │ │ │ ├── modelolazy │ │ │ │ └── LazyCarroDataModel.java │ │ │ │ ├── service │ │ │ │ ├── CadastroAcessorioService.java │ │ │ │ ├── CadastroAluguelService.java │ │ │ │ ├── CadastroCarroService.java │ │ │ │ ├── CadastroFabricanteService.java │ │ │ │ ├── CadastroFuncionarioService.java │ │ │ │ ├── CadastroModeloCarroService.java │ │ │ │ ├── CadastroMotoristaService.java │ │ │ │ └── NegocioException.java │ │ │ │ └── util │ │ │ │ ├── cdi │ │ │ │ ├── CDIServiceLocator.java │ │ │ │ ├── ViewContextExtension.java │ │ │ │ └── ViewScopedContext.java │ │ │ │ ├── jpa │ │ │ │ ├── EntityManagerProducer.java │ │ │ │ ├── TransactionInterceptor.java │ │ │ │ └── Transactional.java │ │ │ │ └── jsf │ │ │ │ └── FacesUtil.java │ │ ├── resources │ │ │ └── META-INF │ │ │ │ ├── beans.xml │ │ │ │ ├── persistence.xml │ │ │ │ └── services │ │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── context.xml │ │ │ ├── WEB-INF │ │ │ ├── faces-config.xml │ │ │ ├── template │ │ │ │ └── LayoutPadrao.xhtml │ │ │ └── web.xml │ │ │ ├── acessorio │ │ │ ├── CadastroAcessorio.xhtml │ │ │ └── PesquisaAcessorios.xhtml │ │ │ ├── aluguel │ │ │ ├── NovoAluguel.xhtml │ │ │ └── PesquisaAluguel.xhtml │ │ │ ├── carro │ │ │ ├── CadastroCarro.xhtml │ │ │ └── PesquisaCarros.xhtml │ │ │ ├── fabricante │ │ │ ├── CadastroFabricante.xhtml │ │ │ └── PesquisaFabricantes.xhtml │ │ │ ├── funcionario │ │ │ ├── CadastroFuncionario.xhtml │ │ │ └── PesquisaFuncionarios.xhtml │ │ │ ├── modeloCarro │ │ │ ├── CadastroModeloCarro.xhtml │ │ │ └── PesquisaModeloCarro.xhtml │ │ │ ├── motorista │ │ │ ├── CadastroMotorista.xhtml │ │ │ └── PesquisaMotoristas.xhtml │ │ │ └── resources │ │ │ ├── css │ │ │ └── sistema.css │ │ │ └── imagens │ │ │ ├── carregando.gif │ │ │ ├── logo-algaworks.png │ │ │ └── seta-para-baixo.png │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── criteria │ │ │ ├── CachePrimeiroNivel.java │ │ │ ├── ConsultasNativas.java │ │ │ ├── ExemplosCascata.java │ │ │ ├── ExemplosCriteria.java │ │ │ ├── PrecoCarro.java │ │ │ └── ProblemaNMaisUm.java │ │ │ └── dao │ │ │ └── CarroDAOTest.java │ │ └── resources │ │ ├── hibernate.properties │ │ ├── jintegrity.properties │ │ └── xml │ │ ├── Carro.xml │ │ └── CarroAcessorio.xml ├── Trabalhando com Named Query │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroFuncionarioBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── CadastroMotoristaBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ └── PesquisaMotoristaBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ ├── FuncionarioConverter.java │ │ │ ├── ModeloCarroConverter.java │ │ │ └── MotoristaConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ ├── FuncionarioDAO.java │ │ │ ├── ModeloCarroDAO.java │ │ │ └── MotoristaDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── Funcionario.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ ├── Pessoa.java │ │ │ └── Sexo.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroFuncionarioService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ ├── CadastroMotoristaService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── funcionario │ │ ├── CadastroFuncionario.xhtml │ │ └── PesquisaFuncionarios.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ ├── motorista │ │ ├── CadastroMotorista.xhtml │ │ └── PesquisaMotoristas.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Trabalhando com projecoes │ └── consultas-locadora-veiculo │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── consultas │ │ ├── ConsultaDescricaoECategoriaDeModeloCarro.java │ │ ├── ConsultaFabricantes.java │ │ ├── ConsultaFabricantesPeloModeloCarro.java │ │ ├── ConsultaModeloFiltrandoFabricante.java │ │ └── ConsultaModeloFiltroEmFabricanteECategoria.java │ │ ├── modelo │ │ ├── Acessorio.java │ │ ├── Aluguel.java │ │ ├── ApoliceSeguro.java │ │ ├── Carro.java │ │ ├── Categoria.java │ │ ├── Fabricante.java │ │ ├── Funcionario.java │ │ ├── ModeloCarro.java │ │ ├── Motorista.java │ │ ├── Pessoa.java │ │ └── Sexo.java │ │ └── util │ │ └── JPAUtil.java ├── Trabalhando com queries agregadas │ └── consultas-locadora-veiculo │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── consultas │ │ ├── ConsultaAcessorioPorModeloCarro.java │ │ ├── ConsultaDescricaoECategoriaDeModeloCarro.java │ │ ├── ConsultaFabricantes.java │ │ ├── ConsultaFabricantesPeloModeloCarro.java │ │ ├── ConsultaModeloFiltrandoFabricante.java │ │ ├── ConsultaModeloFiltroEmFabricanteECategoria.java │ │ └── ConsultasAgregadasEmCarro.java │ │ ├── modelo │ │ ├── Acessorio.java │ │ ├── Aluguel.java │ │ ├── ApoliceSeguro.java │ │ ├── Carro.java │ │ ├── Categoria.java │ │ ├── Fabricante.java │ │ ├── Funcionario.java │ │ ├── ModeloCarro.java │ │ ├── Motorista.java │ │ ├── Pessoa.java │ │ └── Sexo.java │ │ └── util │ │ └── JPAUtil.java ├── Usando JTA em um ambiente Java EE │ ├── inicio-projeto-jboss │ │ ├── docs │ │ │ └── README.txt │ │ ├── ear │ │ │ └── pom.xml │ │ ├── ejb │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── algaworks │ │ │ │ │ └── jboss │ │ │ │ │ └── ejb │ │ │ │ │ └── CadastroClienteEJB.java │ │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── persistence.xml │ │ ├── modelo │ │ │ ├── pom.xml │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── jboss │ │ │ │ └── modelo │ │ │ │ └── Cliente.java │ │ ├── pom.xml │ │ └── war │ │ │ ├── pom.xml │ │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── jboss │ │ │ │ └── controller │ │ │ │ └── CadastroClienteBean.java │ │ │ └── webapp │ │ │ ├── Home.xhtml │ │ │ └── WEB-INF │ │ │ ├── beans.xml │ │ │ ├── faces-config.xml │ │ │ └── web.xml │ └── projeto-jboss │ │ ├── docs │ │ └── README.txt │ │ ├── ear │ │ └── pom.xml │ │ ├── ejb │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── algaworks │ │ │ │ └── jboss │ │ │ │ └── ejb │ │ │ │ └── CadastroClienteEJB.java │ │ │ └── resources │ │ │ └── META-INF │ │ │ └── persistence.xml │ │ ├── modelo │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── algaworks │ │ │ └── jboss │ │ │ └── modelo │ │ │ └── Cliente.java │ │ ├── pom.xml │ │ └── war │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── jboss │ │ │ └── controller │ │ │ └── CadastroClienteBean.java │ │ └── webapp │ │ ├── Home.xhtml │ │ └── WEB-INF │ │ ├── beans.xml │ │ ├── faces-config.xml │ │ └── web.xml └── projeto-glassfish │ ├── ear │ └── pom.xml │ ├── ejb │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── glassfish │ │ │ └── ejb │ │ │ └── CadastroClienteEJB.java │ │ └── resources │ │ └── META-INF │ │ └── persistence.xml │ ├── modelo │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── algaworks │ │ └── glassfish │ │ └── modelo │ │ └── Cliente.java │ ├── pom.xml │ └── war │ ├── pom.xml │ └── src │ └── main │ ├── java │ └── com │ │ └── algaworks │ │ └── glassfish │ │ └── controller │ │ └── CadastroClienteBean.java │ └── webapp │ ├── Home.xhtml │ └── WEB-INF │ ├── beans.xml │ ├── faces-config.xml │ └── web.xml ├── Exercicios ├── Exercicio - Adicionando mais uma enumeracao │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroFuncionarioBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── CadastroMotoristaBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ └── PesquisaMotoristaBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ ├── FuncionarioConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ ├── FuncionarioDAO.java │ │ │ ├── ModeloCarroDAO.java │ │ │ └── MotoristaDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── Funcionario.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ ├── Pessoa.java │ │ │ └── Sexo.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroFuncionarioService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ ├── CadastroMotoristaService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── funcionario │ │ ├── CadastroFuncionario.xhtml │ │ └── PesquisaFuncionarios.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ ├── motorista │ │ ├── CadastroMotorista.xhtml │ │ └── PesquisaMotoristas.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Exercicio - Cadastro de Funcionario │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroFuncionarioBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── CadastroMotoristaBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ └── PesquisaMotoristaBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ ├── FuncionarioConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ ├── FuncionarioDAO.java │ │ │ ├── ModeloCarroDAO.java │ │ │ └── MotoristaDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── Funcionario.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ └── Pessoa.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroFuncionarioService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ ├── CadastroMotoristaService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── funcionario │ │ ├── CadastroFuncionario.xhtml │ │ └── PesquisaFuncionarios.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ ├── motorista │ │ ├── CadastroMotorista.xhtml │ │ └── PesquisaMotoristas.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Exercicio - Filtrando resultados │ └── consultas-locadora-veiculo │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── consultas │ │ ├── ConsultaFabricantes.java │ │ ├── ConsultaFabricantesPeloModeloCarro.java │ │ ├── ConsultaModeloFiltrandoFabricante.java │ │ └── ConsultaModeloFiltroEmFabricanteECategoria.java │ │ ├── modelo │ │ ├── Acessorio.java │ │ ├── Aluguel.java │ │ ├── ApoliceSeguro.java │ │ ├── Carro.java │ │ ├── Categoria.java │ │ ├── Fabricante.java │ │ ├── Funcionario.java │ │ ├── ModeloCarro.java │ │ ├── Motorista.java │ │ ├── Pessoa.java │ │ └── Sexo.java │ │ └── util │ │ └── JPAUtil.java ├── Exercicio - Implementando mais um Muitos-Para-Um │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroFuncionarioBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── CadastroMotoristaBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ ├── PesquisaFuncionarioBean.java │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ └── PesquisaMotoristaBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ ├── FuncionarioConverter.java │ │ │ ├── ModeloCarroConverter.java │ │ │ └── MotoristaConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ ├── FuncionarioDAO.java │ │ │ ├── ModeloCarroDAO.java │ │ │ └── MotoristaDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── Funcionario.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ ├── Pessoa.java │ │ │ └── Sexo.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroFuncionarioService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ ├── CadastroMotoristaService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── funcionario │ │ ├── CadastroFuncionario.xhtml │ │ └── PesquisaFuncionarios.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ ├── motorista │ │ ├── CadastroMotorista.xhtml │ │ └── PesquisaMotoristas.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Exercicio - Mapeamento Um-Para-Um │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ └── PesquisaModeloCarroBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ └── ModeloCarroDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Fabricante.java │ │ │ └── ModeloCarro.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ └── CadastroCarro.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Exercicio - Mapeando Muitos-Para-Muitos │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ └── PesquisaModeloCarroBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ └── ModeloCarroDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Carro.java │ │ │ ├── Fabricante.java │ │ │ └── ModeloCarro.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── carro │ │ └── CadastroCarro.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Exercicio - Mapeando heranca com Joined │ └── locadora-veiculo-web │ │ ├── pom.xml │ │ └── src │ │ └── main │ │ ├── java │ │ └── com │ │ │ └── algaworks │ │ │ └── curso │ │ │ └── jpa2 │ │ │ ├── controller │ │ │ ├── CadastroAcessorioBean.java │ │ │ ├── CadastroCarroBean.java │ │ │ ├── CadastroFabricanteBean.java │ │ │ ├── CadastroModeloCarroBean.java │ │ │ ├── CadastroMotoristaBean.java │ │ │ ├── NovoAluguelBean.java │ │ │ ├── PesquisaAcessorioBean.java │ │ │ ├── PesquisaCarroBean.java │ │ │ ├── PesquisaFabricanteBean.java │ │ │ ├── PesquisaModeloCarroBean.java │ │ │ └── PesquisaMotoristaBean.java │ │ │ ├── converter │ │ │ ├── AcessorioConverter.java │ │ │ ├── CarroConverter.java │ │ │ ├── FabricanteConverter.java │ │ │ └── ModeloCarroConverter.java │ │ │ ├── dao │ │ │ ├── AcessorioDAO.java │ │ │ ├── AluguelDAO.java │ │ │ ├── ApoliceSeguroDAO.java │ │ │ ├── CarroDAO.java │ │ │ ├── FabricanteDAO.java │ │ │ ├── ModeloCarroDAO.java │ │ │ └── MotoristaDAO.java │ │ │ ├── modelo │ │ │ ├── Acessorio.java │ │ │ ├── Aluguel.java │ │ │ ├── ApoliceSeguro.java │ │ │ ├── Carro.java │ │ │ ├── Categoria.java │ │ │ ├── Fabricante.java │ │ │ ├── ModeloCarro.java │ │ │ ├── Motorista.java │ │ │ └── Pessoa.java │ │ │ ├── service │ │ │ ├── CadastroAcessorioService.java │ │ │ ├── CadastroAluguelService.java │ │ │ ├── CadastroCarroService.java │ │ │ ├── CadastroFabricanteService.java │ │ │ ├── CadastroModeloCarroService.java │ │ │ ├── CadastroMotoristaService.java │ │ │ └── NegocioException.java │ │ │ └── util │ │ │ ├── cdi │ │ │ ├── CDIServiceLocator.java │ │ │ ├── ViewContextExtension.java │ │ │ └── ViewScopedContext.java │ │ │ ├── jpa │ │ │ ├── EntityManagerProducer.java │ │ │ ├── TransactionInterceptor.java │ │ │ └── Transactional.java │ │ │ └── jsf │ │ │ └── FacesUtil.java │ │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ ├── persistence.xml │ │ │ └── services │ │ │ └── javax.enterprise.inject.spi.Extension │ │ └── webapp │ │ ├── Home.xhtml │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ │ ├── WEB-INF │ │ ├── faces-config.xml │ │ ├── template │ │ │ └── LayoutPadrao.xhtml │ │ └── web.xml │ │ ├── acessorio │ │ ├── CadastroAcessorio.xhtml │ │ └── PesquisaAcessorios.xhtml │ │ ├── aluguel │ │ └── NovoAluguel.xhtml │ │ ├── carro │ │ ├── CadastroCarro.xhtml │ │ └── PesquisaCarros.xhtml │ │ ├── fabricante │ │ ├── CadastroFabricante.xhtml │ │ └── PesquisaFabricantes.xhtml │ │ ├── modeloCarro │ │ ├── CadastroModeloCarro.xhtml │ │ └── PesquisaModeloCarro.xhtml │ │ ├── motorista │ │ ├── CadastroMotorista.xhtml │ │ └── PesquisaMotoristas.xhtml │ │ └── resources │ │ ├── css │ │ └── sistema.css │ │ └── imagens │ │ ├── carregando.gif │ │ ├── logo-algaworks.png │ │ └── seta-para-baixo.png ├── Exercicio - Movendo objetos pelo ciclo de vida │ └── crud-jpa-hibernate │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ ├── main │ │ ├── AtualizandoPrimeiroObjeto.java │ │ ├── ConsultaComJPQL.java │ │ ├── ConsultandoPrimeiroObjeto.java │ │ ├── RemovendoPrimeiroObjeto.java │ │ ├── SalvandoPrimeiroObjeto.java │ │ └── TesteDoCicloDeVida.java │ │ ├── modelo │ │ └── Cliente.java │ │ └── util │ │ └── jpa │ │ └── JPAUtil.java ├── Exercicio - Novos tipos de retorno │ └── consultas-locadora-veiculo │ │ └── src │ │ ├── META-INF │ │ └── persistence.xml │ │ └── com │ │ └── algaworks │ │ └── curso │ │ └── jpa2 │ │ ├── consultas │ │ ├── ConsultaAcessorioPorModeloCarro.java │ │ ├── ConsultaAluguelPorData.java │ │ ├── ConsultaDescricaoECategoriaDeModeloCarro.java │ │ ├── ConsultaFabricantes.java │ │ ├── ConsultaFabricantesPeloModeloCarro.java │ │ ├── ConsultaModeloFiltrandoFabricante.java │ │ ├── ConsultaModeloFiltroEmFabricanteECategoria.java │ │ ├── ConsultaPassandoParametros.java │ │ └── ConsultasAgregadasEmCarro.java │ │ ├── info │ │ └── AluguelCarroInfo.java │ │ ├── modelo │ │ ├── Acessorio.java │ │ ├── Aluguel.java │ │ ├── ApoliceSeguro.java │ │ ├── Carro.java │ │ ├── Categoria.java │ │ ├── Fabricante.java │ │ ├── Funcionario.java │ │ ├── ModeloCarro.java │ │ ├── Motorista.java │ │ ├── Pessoa.java │ │ └── Sexo.java │ │ └── util │ │ └── JPAUtil.java └── Exercicio - Passando datas como parametros │ └── consultas-locadora-veiculo │ └── src │ ├── META-INF │ └── persistence.xml │ └── com │ └── algaworks │ └── curso │ └── jpa2 │ ├── consultas │ ├── ConsultaAcessorioPorModeloCarro.java │ ├── ConsultaAluguelPorData.java │ ├── ConsultaDescricaoECategoriaDeModeloCarro.java │ ├── ConsultaFabricantes.java │ ├── ConsultaFabricantesPeloModeloCarro.java │ ├── ConsultaModeloFiltrandoFabricante.java │ ├── ConsultaModeloFiltroEmFabricanteECategoria.java │ ├── ConsultaPassandoParametros.java │ └── ConsultasAgregadasEmCarro.java │ ├── modelo │ ├── Acessorio.java │ ├── Aluguel.java │ ├── ApoliceSeguro.java │ ├── Carro.java │ ├── Categoria.java │ ├── Fabricante.java │ ├── Funcionario.java │ ├── ModeloCarro.java │ ├── Motorista.java │ ├── Pessoa.java │ └── Sexo.java │ └── util │ └── JPAUtil.java ├── README.md └── docs ├── diagrama_classe_locadora_veiculo.jpg └── star_uml_locadora_veiculo.uml /.gitignore: -------------------------------------------------------------------------------- 1 | .metadata/ 2 | bin/ 3 | .class 4 | .settings/ 5 | target/ 6 | .DS_Store 7 | ._.DS_Store 8 | .project 9 | .classpath 10 | -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/main/java/com/algaworks/gerenciador/model/Status.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.gerenciador.model; 2 | 3 | public enum Status { 4 | 5 | ATIVO, 6 | INATIVO; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/main/resources/META-INF/beans.xml -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/main/resources/ehcache.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/test/resources/dados/Grupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/test/resources/dados/Usuario.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/test/resources/dados/UsuarioGrupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/gerenciador_acesso 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/Cache com Infinispan/gerenciador-acesso-com-cache/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=dados 2 | xml=Usuario,Grupo,UsuarioGrupo -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/main/java/com/algaworks/gerenciador/model/Status.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.gerenciador.model; 2 | 3 | public enum Status { 4 | 5 | ATIVO, 6 | INATIVO; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/main/resources/META-INF/beans.xml -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/main/resources/ehcache.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/test/resources/dados/Grupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/test/resources/dados/Usuario.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/test/resources/dados/UsuarioGrupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/gerenciador_acesso 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/Cache com ehcache/gerenciador-acesso-com-cache/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=dados 2 | xml=Usuario,Grupo,UsuarioGrupo -------------------------------------------------------------------------------- /Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/main/java/com/algaworks/gerenciador/model/Status.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.gerenciador.model; 2 | 3 | public enum Status { 4 | 5 | ATIVO, 6 | INATIVO; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/main/resources/META-INF/beans.xml -------------------------------------------------------------------------------- /Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/test/resources/dados/Grupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/test/resources/dados/Usuario.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/test/resources/dados/UsuarioGrupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/gerenciador_acesso 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/Cache de colecoes/gerenciador-acesso-com-cache/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=dados 2 | xml=Usuario,Grupo,UsuarioGrupo -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/main/java/com/algaworks/gerenciador/model/Status.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.gerenciador.model; 2 | 3 | public enum Status { 4 | 5 | ATIVO, 6 | INATIVO; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache de queries/gerenciador-acesso-com-cache/src/main/resources/META-INF/beans.xml -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/main/resources/META-INF/sql/carregar-dados.sql: -------------------------------------------------------------------------------- 1 | insert into usuario (nome, status) values ("João", "ATIVO"); 2 | insert into usuario (nome, status) values ("Maria", "INATIVO"); 3 | insert into grupo (nome) values ('ADMINISTRADOR'); 4 | insert into grupo (nome) values ('VENDEDOR'); 5 | insert into usuario_grupo (codigo_usuario, codigo_grupo) values (1, 1); 6 | insert into usuario_grupo (codigo_usuario, codigo_grupo) values (1, 2); 7 | insert into usuario_grupo (codigo_usuario, codigo_grupo) values (2, 2); 8 | -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache de queries/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache de queries/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cache de queries/gerenciador-acesso-com-cache/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/test/resources/dados/Grupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/test/resources/dados/Usuario.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/test/resources/dados/UsuarioGrupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/gerenciador_acesso 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/Cache de queries/gerenciador-acesso-com-cache/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=dados 2 | xml=Usuario,Grupo,UsuarioGrupo -------------------------------------------------------------------------------- /Aulas/Cadastrando o primeiro objeto/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Cadastrando o primeiro objeto/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Cadastrando o primeiro objeto/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Cadastrando o primeiro objeto/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Cadastrando o primeiro objeto/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cadastrando o primeiro objeto/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Cadastrando o primeiro objeto/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cadastrando o primeiro objeto/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Cadastrando o primeiro objeto/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Cadastrando o primeiro objeto/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Ciclo de vida e Estados dos Objetos/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Colecoes com objetos embutidos/mais-exemplos/src/com/algaworks/curso/jpa2/util/JPAUtil.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.util; 2 | 3 | import javax.persistence.EntityManager; 4 | import javax.persistence.EntityManagerFactory; 5 | import javax.persistence.Persistence; 6 | 7 | public class JPAUtil { 8 | 9 | private static EntityManagerFactory emf = Persistence.createEntityManagerFactory("maisExemplosPU"); 10 | 11 | public static EntityManager createEntityManager() { 12 | return emf.createEntityManager(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Aulas/Colecoes de tipos basicos/mais-exemplos/src/com/algaworks/curso/jpa2/util/JPAUtil.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.util; 2 | 3 | import javax.persistence.EntityManager; 4 | import javax.persistence.EntityManagerFactory; 5 | import javax.persistence.Persistence; 6 | 7 | public class JPAUtil { 8 | 9 | private static EntityManagerFactory emf = Persistence.createEntityManagerFactory("maisExemplosPU"); 10 | 11 | public static EntityManager createEntityManager() { 12 | return emf.createEntityManager(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Motorista.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Motorista extends Pessoa { 9 | 10 | private String numeroCNH; 11 | 12 | public String getNumeroCNH() { 13 | return numeroCNH; 14 | } 15 | public void setNumeroCNH(String numeroCNH) { 16 | this.numeroCNH = numeroCNH; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Consulta com Criteria/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Criando DAO Generico/pedidos-venda/src/main/java/com/algaworks/pedidovenda/dao/GenericDAO.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.pedidovenda.dao; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | public interface GenericDAO { 7 | 8 | public T buscarPeloCodigo(ID id); 9 | public void salvar(T entidade); 10 | public List filtrar(T entidade, String... propriedades); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /Aulas/Criando DAO Generico/pedidos-venda/src/main/java/com/algaworks/pedidovenda/dao/ItemPedidoDAO.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.pedidovenda.dao; 2 | 3 | import java.util.List; 4 | 5 | import com.algaworks.pedidovenda.model.ItemPedido; 6 | 7 | public interface ItemPedidoDAO extends GenericDAO { 8 | 9 | public List buscarItensPendentes(); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /Aulas/Criando DAO Generico/pedidos-venda/src/main/java/com/algaworks/pedidovenda/dao/PedidoDAO.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.pedidovenda.dao; 2 | 3 | import java.util.List; 4 | 5 | import com.algaworks.pedidovenda.dao.vo.ValorTotalVendaDoDia; 6 | import com.algaworks.pedidovenda.model.Pedido; 7 | 8 | public interface PedidoDAO extends GenericDAO { 9 | 10 | public List buscarValorTotalVendaDoDia(); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /Aulas/Criando DAO Generico/pedidos-venda/src/main/java/com/algaworks/pedidovenda/model/Entrega.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.pedidovenda.model; 2 | 3 | public enum Entrega { 4 | 5 | PENDENTE, 6 | REALIZADA 7 | 8 | } 9 | -------------------------------------------------------------------------------- /Aulas/Criando DAO Generico/pedidos-venda/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Criando DAO Generico/pedidos-venda/src/main/resources/META-INF/beans.xml -------------------------------------------------------------------------------- /Aulas/Criando DAO Generico/pedidos-venda/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/Criando DAO Generico/pedidos-venda/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Criando DAO Generico/pedidos-venda/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Criando DAO Generico/pedidos-venda/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Criando DAO Generico/pedidos-venda/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Criando DAO Generico/pedidos-venda/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Criando DAO Generico/pedidos-venda/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Criando DAO Generico/pedidos-venda/src/test/java/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Criando DAO Generico/pedidos-venda/src/test/java/.gitkeep -------------------------------------------------------------------------------- /Aulas/Criando DAO Generico/pedidos-venda/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Criando DAO Generico/pedidos-venda/src/test/resources/.gitkeep -------------------------------------------------------------------------------- /Aulas/Criando projeto do curso/locadora-veiculo-web/.metadata/src/main/webapp/WEB-INF/faces-config.pageflow: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /Aulas/Criando projeto do curso/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Criando projeto do curso/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Criando projeto do curso/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Criando projeto do curso/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Criando projeto do curso/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Criando projeto do curso/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Criando projeto do curso/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Criando projeto do curso/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Criando projeto do curso/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Motorista.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Motorista extends Pessoa { 9 | 10 | private String numeroCNH; 11 | 12 | public String getNumeroCNH() { 13 | return numeroCNH; 14 | } 15 | public void setNumeroCNH(String numeroCNH) { 16 | this.numeroCNH = numeroCNH; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Entendendo paginacao/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Exclusao com Many-To-Many/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Exemplo Lazy OneToOne/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/Exemplo Lazy OneToOne/src/test/resources/dados/Endereco.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Aulas/Exemplo Lazy OneToOne/src/test/resources/dados/Usuario.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Exemplo Lazy OneToOne/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/exemplo_lazy_one_to_one 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/Exemplo Lazy OneToOne/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=dados 2 | xml=Usuario,Endereco -------------------------------------------------------------------------------- /Aulas/Exemplo lock otimista/src/main/java/com/algaworks/exemplo/lock/otimista/exception/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.exemplo.lock.otimista.exception; 2 | 3 | public class NegocioException extends RuntimeException { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public NegocioException(String msg) { 8 | super(msg); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /Aulas/Exemplo lock otimista/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.exemplo.lock.otimista.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Exemplo lock otimista/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.exemplo.lock.otimista.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Exemplo lock otimista/src/main/webapp/WEB-INF/faces-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 11 | pt_BR 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Aulas/Exemplo lock otimista/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Exemplo lock otimista/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Exemplo lock otimista/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Exemplo lock otimista/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Exemplo lock otimista/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Exemplo lock otimista/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Fazendo Join entre entidades/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Fazendo Join entre entidades/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Fazendo Join entre entidades/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Filtrando resultados/crud-jpa-hibernate/src/com/algaworks/curso/util/jpa/JPAUtil.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.util.jpa; 2 | 3 | import javax.persistence.EntityManager; 4 | import javax.persistence.EntityManagerFactory; 5 | import javax.persistence.Persistence; 6 | 7 | public class JPAUtil { 8 | 9 | private static EntityManagerFactory emf = Persistence.createEntityManagerFactory("exemploPU"); 10 | 11 | public static EntityManager createEntityManager() { 12 | return emf.createEntityManager(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Aulas/Filtrando resultados/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Filtrando resultados/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Motorista.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Motorista extends Pessoa { 9 | 10 | private String numeroCNH; 11 | 12 | public String getNumeroCNH() { 13 | return numeroCNH; 14 | } 15 | public void setNumeroCNH(String numeroCNH) { 16 | this.numeroCNH = numeroCNH; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Aulas/Filtrando resultados/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Filtrando resultados/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Filtrando resultados/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Filtrando resultados/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Filtrando resultados/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Filtrando resultados/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Filtrando resultados/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Filtrando resultados/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Filtrando resultados/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Filtrando resultados/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Filtrando resultados/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Motorista.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Motorista extends Pessoa { 9 | 10 | private String numeroCNH; 11 | 12 | public String getNumeroCNH() { 13 | return numeroCNH; 14 | } 15 | public void setNumeroCNH(String numeroCNH) { 16 | this.numeroCNH = numeroCNH; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Funcoes de agregacao/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Funcionario.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Funcionario extends Pessoa { 9 | 10 | private String matricula; 11 | 12 | public String getMatricula() { 13 | return matricula; 14 | } 15 | 16 | public void setMatricula(String matricula) { 17 | this.matricula = matricula; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Motorista.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Motorista extends Pessoa { 9 | 10 | private String numeroCNH; 11 | 12 | public String getNumeroCNH() { 13 | return numeroCNH; 14 | } 15 | public void setNumeroCNH(String numeroCNH) { 16 | this.numeroCNH = numeroCNH; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/util/jpa/Transactional.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.util.jpa; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | import javax.interceptor.InterceptorBinding; 9 | 10 | @InterceptorBinding 11 | @Retention(RetentionPolicy.RUNTIME) 12 | @Target({ElementType.TYPE, ElementType.METHOD}) 13 | public @interface Transactional { 14 | 15 | } -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/webapp/Home.xhtml: -------------------------------------------------------------------------------- 1 | 7 | 8 | Dashboard 9 | 10 | 11 |


Seja bem-vindo!


12 |
13 | 14 |
-------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Funcoes/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Funcoes/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Funcoes/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Funcoes/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Implementando a consulta e exclusao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Implementando a consulta e exclusao/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Implementando a consulta e exclusao/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Implementando a consulta e exclusao/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Implementando a consulta e exclusao/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Implementando a consulta e exclusao/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Implementando a consulta e exclusao/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Implementando a consulta e exclusao/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Implementando a consulta e exclusao/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Implementando a consulta e exclusao/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Implementando a edicao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Implementando a edicao/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Implementando a edicao/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Implementando a edicao/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Implementando a edicao/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Implementando a edicao/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Implementando a edicao/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Implementando a edicao/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Implementando a edicao/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Implementando a edicao/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Implementando mais uma consulta/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Implementando mais uma consulta/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Implementando mais uma consulta/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Implementando mais uma consulta/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Implementando mais uma consulta/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Implementando mais uma consulta/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Implementando mais uma consulta/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Implementando mais uma consulta/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Implementando mais uma consulta/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Implementando mais uma consulta/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Importando um projeto do GitHub/primeiro-projeto-jsf/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /Aulas/Inicializacao tardia (Lazy) e ansiosa (Eager)/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Inicializacao tardia (Lazy) e ansiosa (Eager)/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Inicializacao tardia (Lazy) e ansiosa (Eager)/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Inicializacao tardia (Lazy) e ansiosa (Eager)/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Inicializacao tardia (Lazy) e ansiosa (Eager)/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Inicializacao tardia (Lazy) e ansiosa (Eager)/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Inicializacao tardia (Lazy) e ansiosa (Eager)/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Inicializacao tardia (Lazy) e ansiosa (Eager)/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Inicializacao tardia (Lazy) e ansiosa (Eager)/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Inicializacao tardia (Lazy) e ansiosa (Eager)/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Introducao Java Persistence Query Language/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Introducao Java Persistence Query Language/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/main/java/com/algaworks/notafiscal/repository/Estados.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.notafiscal.repository; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | import com.algaworks.notafiscal.model.Estado; 7 | 8 | public interface Estados extends Serializable { 9 | 10 | public Estado guardar(Estado estado); 11 | public List todos(); 12 | public Estado peloCodigo(Long codigo); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/main/java/com/algaworks/notafiscal/repository/NotasFiscais.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.notafiscal.repository; 2 | 3 | import java.io.Serializable; 4 | 5 | import com.algaworks.notafiscal.model.NFe; 6 | 7 | public interface NotasFiscais extends Serializable { 8 | 9 | public NFe guardar(NFe nfe); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/main/resources/META-INF/beans.xml -------------------------------------------------------------------------------- /Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/test/java/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/test/java/.gitkeep -------------------------------------------------------------------------------- /Aulas/Introducao cache de segundo nivel/nota-fiscal-com-cache/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path= 2 | xml= -------------------------------------------------------------------------------- /Aulas/JPA 2.1 - ConstructorResult/Alert.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Aulas/JPA 2.1 - ConstructorResult/ddl.sql: -------------------------------------------------------------------------------- 1 | create table alert ( 2 | codigo bigint(20) primary key auto_increment, 3 | codigo_usuario bigint(20), 4 | register_date datetime, 5 | foreign key (codigo_usuario) references usuario(codigo) 6 | ) -------------------------------------------------------------------------------- /Aulas/JPA 2.1 - Converters/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/JPA 2.1 - Converters/src/test/resources/dados/Usuario.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/JPA 2.1 - Converters/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/novidades_jpa_2_1 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/JPA 2.1 - Converters/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=dados 2 | xml=Usuario -------------------------------------------------------------------------------- /Aulas/JPA 2.1 - Criando o Schema/sql/carregar-dados.sql: -------------------------------------------------------------------------------- 1 | insert into endereco (codigo, rua) values (1, 'Rua X nro 10'); 2 | insert into usuario (codigo, nome, data_nascimento) values (1, 'João Souza', '1990-10-10'); -------------------------------------------------------------------------------- /Aulas/JPA 2.1 - Criando o Schema/sql/criar-tabelas.sql: -------------------------------------------------------------------------------- 1 | create table endereco (codigo bigint primary key auto_increment, rua varchar(100)); -------------------------------------------------------------------------------- /Aulas/JPA 2.1 - Criando o Schema/sql/dropar-tabelas.sql: -------------------------------------------------------------------------------- 1 | drop table if exists endereco; -------------------------------------------------------------------------------- /Aulas/JPA 2.1 - CriteriaUpdate e CriteriaDelete/Fatura.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Aulas/Join e Fetch/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Join e Fetch/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Motorista.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Motorista extends Pessoa { 9 | 10 | private String numeroCNH; 11 | 12 | public String getNumeroCNH() { 13 | return numeroCNH; 14 | } 15 | public void setNumeroCNH(String numeroCNH) { 16 | this.numeroCNH = numeroCNH; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Aulas/Join e Fetch/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Join e Fetch/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Join e Fetch/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Join e Fetch/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Join e Fetch/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Join e Fetch/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Join e Fetch/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Join e Fetch/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Join e Fetch/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Join e Fetch/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Join e Fetch/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Lock pessimista/exemplo-locks/src/test/resources/dados/Cliente.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Aulas/Lock pessimista/exemplo-locks/src/test/resources/dados/Conta.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Lock pessimista/exemplo-locks/src/test/resources/dados/ContaCliente.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Aulas/Lock pessimista/exemplo-locks/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/exemplo_locks 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/Lock pessimista/exemplo-locks/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=dados 2 | xml=Conta,Cliente,ContaCliente -------------------------------------------------------------------------------- /Aulas/Mapeando chaves compostas/mais-exemplos/src/com/algaworks/curso/jpa2/util/JPAUtil.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.util; 2 | 3 | import javax.persistence.EntityManager; 4 | import javax.persistence.EntityManagerFactory; 5 | import javax.persistence.Persistence; 6 | 7 | public class JPAUtil { 8 | 9 | private static EntityManagerFactory emf = Persistence.createEntityManagerFactory("maisExemplosPU"); 10 | 11 | public static EntityManager createEntityManager() { 12 | return emf.createEntityManager(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Aulas/Mapeando datas/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Mapeando datas/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Mapeando datas/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Mapeando datas/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Mapeando datas/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Mapeando datas/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Mapeando datas/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Mapeando datas/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Mapeando datas/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Mapeando datas/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Mapeando datas/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Mapeando enumeracoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Mapeando enumeracoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Mapeando enumeracoes/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Mapeando enumeracoes/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Mapeando enumeracoes/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Mapeando enumeracoes/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Mapeando enumeracoes/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Mapeando enumeracoes/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Mapeando enumeracoes/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Mapeando enumeracoes/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Mapeando enumeracoes/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Mapeando heranca com tabela unica/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Mapeando heranca com tabela unica/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Mapeando heranca com tabela unica/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Mapeando heranca com tabela unica/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Mapeando heranca com tabela unica/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Mapeando heranca com tabela unica/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Mapeando heranca com tabela unica/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Mapeando heranca com tabela unica/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Mapeando heranca com tabela unica/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Mapeando heranca com tabela unica/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Mapeando heranca com tabela unica/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Mapeando objetos embutidos/mais-exemplos/src/com/algaworks/curso/jpa2/util/JPAUtil.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.util; 2 | 3 | import javax.persistence.EntityManager; 4 | import javax.persistence.EntityManagerFactory; 5 | import javax.persistence.Persistence; 6 | 7 | public class JPAUtil { 8 | 9 | private static EntityManagerFactory emf = Persistence.createEntityManagerFactory("maisExemplosPU"); 10 | 11 | public static EntityManager createEntityManager() { 12 | return emf.createEntityManager(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Aulas/Metamodel/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Metamodel/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Funcionario.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Funcionario extends Pessoa { 9 | 10 | private String matricula; 11 | 12 | public String getMatricula() { 13 | return matricula; 14 | } 15 | 16 | public void setMatricula(String matricula) { 17 | this.matricula = matricula; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /Aulas/Metamodel/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Motorista.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Motorista extends Pessoa { 9 | 10 | private String numeroCNH; 11 | 12 | public String getNumeroCNH() { 13 | return numeroCNH; 14 | } 15 | public void setNumeroCNH(String numeroCNH) { 16 | this.numeroCNH = numeroCNH; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Aulas/Metamodel/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Metamodel/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Metamodel/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Metamodel/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Metamodel/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Metamodel/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Metamodel/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Metamodel/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Metamodel/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Metamodel/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Metamodel/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/main/java/com/algaworks/gerenciador/model/Status.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.gerenciador.model; 2 | 3 | public enum Status { 4 | 5 | ATIVO, 6 | INATIVO; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/main/resources/META-INF/beans.xml -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/test/resources/.gitkeep -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/test/resources/dados/Grupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/test/resources/dados/Usuario.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/test/resources/dados/UsuarioGrupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/gerenciador_acesso 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com Banco de dados separados/gerenciador-acesso/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=dados 2 | xml=Usuario,Grupo,UsuarioGrupo -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/main/java/com/algaworks/gerenciador/model/Status.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.gerenciador.model; 2 | 3 | public enum Status { 4 | 5 | ATIVO, 6 | INATIVO; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/main/resources/META-INF/beans.xml -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/test/resources/dados/Grupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/test/resources/dados/Usuario.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/test/resources/dados/UsuarioGrupo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/gerenciador_acesso 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/Multi-Tenancy com schema separado/gerenciador-acesso/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=dados 2 | xml=Usuario,Grupo,UsuarioGrupo -------------------------------------------------------------------------------- /Aulas/Named queries em arquivos externos/financeiro-exemplo/src/main/java/com/algaworks/financeiro/model/TipoLancamento.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.financeiro.model; 2 | 3 | public enum TipoLancamento { 4 | 5 | RECEITA, 6 | DESPESA 7 | 8 | } 9 | -------------------------------------------------------------------------------- /Aulas/Named queries em arquivos externos/financeiro-exemplo/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/Named queries em arquivos externos/financeiro-exemplo/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path= 2 | xml= -------------------------------------------------------------------------------- /Aulas/O pattern DAO/pedidos-venda/src/main/java/com/algaworks/pedidovenda/model/Entrega.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.pedidovenda.model; 2 | 3 | public enum Entrega { 4 | 5 | PENDENTE, 6 | REALIZADA 7 | 8 | } 9 | -------------------------------------------------------------------------------- /Aulas/O pattern DAO/pedidos-venda/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/O pattern DAO/pedidos-venda/src/main/resources/META-INF/beans.xml -------------------------------------------------------------------------------- /Aulas/O pattern DAO/pedidos-venda/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/O pattern DAO/pedidos-venda/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/O pattern DAO/pedidos-venda/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/O pattern DAO/pedidos-venda/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/O pattern DAO/pedidos-venda/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/O pattern DAO/pedidos-venda/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/O pattern DAO/pedidos-venda/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/O pattern DAO/pedidos-venda/src/test/java/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/O pattern DAO/pedidos-venda/src/test/java/.gitkeep -------------------------------------------------------------------------------- /Aulas/O pattern DAO/pedidos-venda/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/O pattern DAO/pedidos-venda/src/test/resources/.gitkeep -------------------------------------------------------------------------------- /Aulas/O pattern Repository/pedidos-venda/src/main/java/com/algaworks/pedidovenda/model/Entrega.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.pedidovenda.model; 2 | 3 | public enum Entrega { 4 | 5 | PENDENTE, 6 | REALIZADA 7 | 8 | } 9 | -------------------------------------------------------------------------------- /Aulas/O pattern Repository/pedidos-venda/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/O pattern Repository/pedidos-venda/src/main/resources/META-INF/beans.xml -------------------------------------------------------------------------------- /Aulas/O pattern Repository/pedidos-venda/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/O pattern Repository/pedidos-venda/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/O pattern Repository/pedidos-venda/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/O pattern Repository/pedidos-venda/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/O pattern Repository/pedidos-venda/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/O pattern Repository/pedidos-venda/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/O pattern Repository/pedidos-venda/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/O que e API Criteria/crud-jpa-hibernate/src/com/algaworks/curso/util/jpa/JPAUtil.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.util.jpa; 2 | 3 | import javax.persistence.EntityManager; 4 | import javax.persistence.EntityManagerFactory; 5 | import javax.persistence.Persistence; 6 | 7 | public class JPAUtil { 8 | 9 | private static EntityManagerFactory emf = Persistence.createEntityManagerFactory("exemploPU"); 10 | 11 | public static EntityManager createEntityManager() { 12 | return emf.createEntityManager(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Aulas/Objetos grandes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Objetos grandes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Motorista.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Motorista extends Pessoa { 9 | 10 | private String numeroCNH; 11 | 12 | public String getNumeroCNH() { 13 | return numeroCNH; 14 | } 15 | public void setNumeroCNH(String numeroCNH) { 16 | this.numeroCNH = numeroCNH; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Aulas/Objetos grandes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Objetos grandes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Objetos grandes/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Objetos grandes/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Objetos grandes/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Objetos grandes/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Objetos grandes/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Objetos grandes/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Objetos grandes/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Objetos grandes/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Objetos grandes/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/One to one Lazy - com anotacoes/problema-lazy-one-to-one/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/One to one Lazy - com anotacoes/problema-lazy-one-to-one/src/test/resources/dados/Endereco.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Aulas/One to one Lazy - com anotacoes/problema-lazy-one-to-one/src/test/resources/dados/Usuario.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/One to one Lazy - com anotacoes/problema-lazy-one-to-one/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/exemplo_lazy_one_to_one 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/One to one Lazy - com anotacoes/problema-lazy-one-to-one/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=dados 2 | xml=Usuario,Endereco -------------------------------------------------------------------------------- /Aulas/One to one lazy - com instrumentacao/problema-lazy-one-to-one/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root logger level to DEBUG and its only appender to A1. 2 | log4j.rootLogger=INFO, A1 3 | 4 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 5 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 6 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n 7 | 8 | log4j.logger.com.jintegrity=WARN -------------------------------------------------------------------------------- /Aulas/One to one lazy - com instrumentacao/problema-lazy-one-to-one/src/test/resources/dados/Endereco.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Aulas/One to one lazy - com instrumentacao/problema-lazy-one-to-one/src/test/resources/dados/Usuario.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Aulas/One to one lazy - com instrumentacao/problema-lazy-one-to-one/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/exemplo_lazy_one_to_one 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/One to one lazy - com instrumentacao/problema-lazy-one-to-one/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=dados 2 | xml=Usuario,Endereco -------------------------------------------------------------------------------- /Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Ordenacao de resultado/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Passando parametros para queries/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Passando parametros para queries/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Procedures/exemplo-procedures/src/test/java/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Procedures/exemplo-procedures/src/test/java/.gitkeep -------------------------------------------------------------------------------- /Aulas/Procedures/exemplo-procedures/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Procedures/exemplo-procedures/src/test/resources/.gitkeep -------------------------------------------------------------------------------- /Aulas/Projecoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Projecoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Funcionario.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Funcionario extends Pessoa { 9 | 10 | private String matricula; 11 | 12 | public String getMatricula() { 13 | return matricula; 14 | } 15 | 16 | public void setMatricula(String matricula) { 17 | this.matricula = matricula; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /Aulas/Projecoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Motorista.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Motorista extends Pessoa { 9 | 10 | private String numeroCNH; 11 | 12 | public String getNumeroCNH() { 13 | return numeroCNH; 14 | } 15 | public void setNumeroCNH(String numeroCNH) { 16 | this.numeroCNH = numeroCNH; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Aulas/Projecoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Projecoes/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Projecoes/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Projecoes/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Projecoes/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Projecoes/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Projecoes/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Projecoes/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Projecoes/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Projecoes/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Projecoes/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Projeto atualizado/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Projeto atualizado/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Projeto atualizado/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Projeto atualizado/locadora-veiculo-web/src/main/resources/META-INF/beans.xml -------------------------------------------------------------------------------- /Aulas/Projeto atualizado/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Projeto atualizado/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Projeto atualizado/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Projeto atualizado/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Projeto atualizado/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Projeto atualizado/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Projeto atualizado/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Projeto atualizado/locadora-veiculo-web/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Projeto atualizado/locadora-veiculo-web/src/test/resources/.gitkeep -------------------------------------------------------------------------------- /Aulas/Propriedades transientes/mais-exemplos/src/com/algaworks/curso/jpa2/util/JPAUtil.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.util; 2 | 3 | import javax.persistence.EntityManager; 4 | import javax.persistence.EntityManagerFactory; 5 | import javax.persistence.Persistence; 6 | 7 | public class JPAUtil { 8 | 9 | private static EntityManagerFactory emf = Persistence.createEntityManagerFactory("maisExemplosPU"); 10 | 11 | public static EntityManager createEntityManager() { 12 | return emf.createEntityManager(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Muitos/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Muitos/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Muitos/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Um/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Um/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Um/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Relacionamento Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Muitos/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Muitos/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Muitos/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Muitos/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Um-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Um-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Um-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Um/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Um/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Um/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Relacionamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Relacionamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Resultados complexos tuplas e construtores/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Selecionando uma entidade de uma entidade/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Selecionando uma entidade de uma entidade/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Subqueries/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Subqueries/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Motorista.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | import javax.persistence.DiscriminatorValue; 4 | import javax.persistence.Entity; 5 | 6 | @Entity 7 | @DiscriminatorValue("1") 8 | public class Motorista extends Pessoa { 9 | 10 | private String numeroCNH; 11 | 12 | public String getNumeroCNH() { 13 | return numeroCNH; 14 | } 15 | public void setNumeroCNH(String numeroCNH) { 16 | this.numeroCNH = numeroCNH; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Aulas/Subqueries/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Subqueries/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Subqueries/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Subqueries/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Subqueries/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Subqueries/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Subqueries/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Subqueries/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Subqueries/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Subqueries/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Subqueries/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/test/resources/hibernate.properties: -------------------------------------------------------------------------------- 1 | hibernate.connection.driver_class=com.mysql.jdbc.Driver 2 | hibernate.connection.url=jdbc:mysql://localhost:3306/locadora 3 | hibernate.connection.username=root 4 | hibernate.connection.password=root -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/test/resources/jintegrity.properties: -------------------------------------------------------------------------------- 1 | path=xml 2 | xml=Carro,CarroAcessorio -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/test/resources/xml/Carro.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Aulas/Testes com jUnit DBUnit e JIntegrity/locadora-veiculo-web/src/test/resources/xml/CarroAcessorio.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Aulas/Trabalhando com Named Query/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Aulas/Trabalhando com projecoes/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Trabalhando com projecoes/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Trabalhando com queries agregadas/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Aulas/Trabalhando com queries agregadas/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Aulas/Usando JTA em um ambiente Java EE/inicio-projeto-jboss/ejb/src/main/java/com/algaworks/jboss/ejb/CadastroClienteEJB.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.jboss.ejb; 2 | 3 | import java.util.List; 4 | 5 | import javax.ejb.Stateless; 6 | 7 | import com.algaworks.jboss.modelo.Cliente; 8 | 9 | @Stateless 10 | public class CadastroClienteEJB { 11 | 12 | public void salvar(Cliente cliente) { 13 | } 14 | 15 | public List buscarTodos() { 16 | return null; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Aulas/Usando JTA em um ambiente Java EE/inicio-projeto-jboss/modelo/src/main/java/com/algaworks/jboss/modelo/Cliente.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.jboss.modelo; 2 | 3 | 4 | public class Cliente { 5 | 6 | 7 | } 8 | -------------------------------------------------------------------------------- /Aulas/Usando JTA em um ambiente Java EE/inicio-projeto-jboss/war/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Aulas/Usando JTA em um ambiente Java EE/projeto-jboss/war/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Aulas/projeto-glassfish/modelo/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 4.0.0 5 | 6 | 7 | com.algaworks 8 | projeto-glassfish 9 | 1.0.0-SNAPSHOT 10 | 11 | 12 | projeto-glassfish-modelo 13 | 14 | 15 | -------------------------------------------------------------------------------- /Aulas/projeto-glassfish/war/src/main/webapp/WEB-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Adicionando mais uma enumeracao/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Cadastro de Funcionario/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Cadastro de Funcionario/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Cadastro de Funcionario/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Cadastro de Funcionario/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Exercicios/Exercicio - Cadastro de Funcionario/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Cadastro de Funcionario/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Cadastro de Funcionario/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Exercicios/Exercicio - Cadastro de Funcionario/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Cadastro de Funcionario/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Cadastro de Funcionario/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Cadastro de Funcionario/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Filtrando resultados/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Filtrando resultados/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Implementando mais um Muitos-Para-Um/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Implementando mais um Muitos-Para-Um/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Implementando mais um Muitos-Para-Um/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Implementando mais um Muitos-Para-Um/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Exercicios/Exercicio - Implementando mais um Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Implementando mais um Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Implementando mais um Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Exercicios/Exercicio - Implementando mais um Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Implementando mais um Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Implementando mais um Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Implementando mais um Muitos-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeamento Um-Para-Um/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeamento Um-Para-Um/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeamento Um-Para-Um/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Mapeamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Mapeamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Mapeamento Um-Para-Um/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando Muitos-Para-Muitos/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando Muitos-Para-Muitos/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando Muitos-Para-Muitos/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Mapeando Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Mapeando Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Mapeando Muitos-Para-Muitos/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando heranca com Joined/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando heranca com Joined/locadora-veiculo-web/src/main/java/com/algaworks/curso/jpa2/service/NegocioException.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.service; 2 | 3 | public class NegocioException extends Exception { 4 | 5 | public NegocioException(String message) { 6 | super(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando heranca com Joined/locadora-veiculo-web/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | com.algaworks.curso.jpa2.util.jpa.TransactionInterceptor 9 | 10 | 11 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando heranca com Joined/locadora-veiculo-web/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | com.algaworks.curso.jpa2.util.cdi.ViewContextExtension -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando heranca com Joined/locadora-veiculo-web/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando heranca com Joined/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Mapeando heranca com Joined/locadora-veiculo-web/src/main/webapp/resources/imagens/carregando.gif -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando heranca com Joined/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Mapeando heranca com Joined/locadora-veiculo-web/src/main/webapp/resources/imagens/logo-algaworks.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Mapeando heranca com Joined/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/Exercicios/Exercicio - Mapeando heranca com Joined/locadora-veiculo-web/src/main/webapp/resources/imagens/seta-para-baixo.png -------------------------------------------------------------------------------- /Exercicios/Exercicio - Novos tipos de retorno/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Novos tipos de retorno/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Passando datas como parametros/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Categoria.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Categoria { 4 | 5 | HATCH_COMPACTO, 6 | HATCH_MEDIO, 7 | SEDAN_COMPACTO, 8 | SEDAN_MEDIO, 9 | SEDAN_GRANDE, 10 | MINIVAN, 11 | ESPORTIVO, 12 | UTILITARIO_COMERCIAL 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Exercicios/Exercicio - Passando datas como parametros/consultas-locadora-veiculo/src/com/algaworks/curso/jpa2/modelo/Sexo.java: -------------------------------------------------------------------------------- 1 | package com.algaworks.curso.jpa2.modelo; 2 | 3 | public enum Sexo { 4 | 5 | MASCULINO("Masculino"), 6 | FEMININO("Feminino"); 7 | 8 | private String descricao; 9 | 10 | Sexo(String descricao) { 11 | this.descricao = descricao; 12 | } 13 | 14 | public String getDescricao() { 15 | return this.descricao; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/README.md -------------------------------------------------------------------------------- /docs/diagrama_classe_locadora_veiculo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algaworks/curso-jpa-hibernate/1194f8158ec253b402cc0bbd25c4be30e98e3b75/docs/diagrama_classe_locadora_veiculo.jpg --------------------------------------------------------------------------------