Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public Boolean limparCache(){
  2. try {
  3. entidadeGerenciamento.createQuery("delete from db_autorizacao where au_id != (select autorizacao from db_aluno)").executeUpdate();
  4. }catch (Exception e){
  5. e.printStackTrace();
  6. }
  7. return true;
  8. }
  9.  
  10. Caused by: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.JPQLException
  11. Exception Description: Syntax error parsing [delete from db_autorizacao where au_id != (select autorizacao from db_aluno)].
  12. [75, 75] An identification variable must be provided for a range variable declaration.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement