Skip to content

jrxxjr/jpa_jpql_criteria

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portuguese:

Exemplo de como fazer consultas em uma aplicação JPA, utilizando JPQL e Criteria

1 - Foi criado um projeto Maven do Eclipse, é só importar um projeto Maven no Eclipse.

2 - No MySql deve-se criar o schema Blog no banco de dados.

3 - A aplicação tem de ser executada localmente para criar as tabelas, com o persistence.xml

4 - Deve-se executar a classe TesteCrudJpa.java.

5 - Verificar se as tabelas da aplicação foram criadas.

6 - Verificar no teste, se os métodos de consulta que se utilizam de JPQL e Criteria foram executados.


English:

Example of how to make queries in a JPA application, using JPQL and Criteria

1 - A standard Eclipse Maven project was created, just import a Maven project in Eclipse.

2 - In the MySql must create the schema Blog in the database.

3 - The application must first be executed locally to create the tables, with persistence.xml

4 - The class TesteCrudJpa.java should be executed.

5 - Check if the application tables were created.

6 - Check in the test, if the query methods that use JPQL and Criteria where executed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages