Guest User

Untitled

a guest
Apr 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. String rejected_offer_query = "SELECT b.job_instance_id, b.start_time, count (*) " +
  2. "FROM SygaOfferRejected s , BatchJobExecution b, BatchJobInstance bi "+
  3. "where s.heure_debut = b.start_time " +
  4. "and s.heure_fin = b.end_time " +
  5. "and b.job_execution_id = bi.job_instance_id " +
  6. "and bi.job_name = :batchName "+
  7. "and b.status = :batchStatus " +
  8. "group by b.job_instance_id";
  9.  
  10. SELECT b.job_instance_id, b.start_time, count (*) " +
  11. "FROM SygaOffer s , BatchJobExecution b, BatchJobInstance bi "+
  12. "where s.heure_debut = b.start_time " +
  13. "and s.heure_fin = b.end_time " +
  14. "and b.job_execution_id = bi.job_instance_id " +
  15. "and bi.job_name = :batchName "+
  16. "and b.status = :batchStatus " +
  17. "group by b.job_instance_id"
  18.  
  19. @Entity
  20. @Inheritance
  21. @Table(name = "bob_syga_off")
  22. public class SygaOffer {
  23. @Id
  24. private long id_offre;
  25. private String acteur;
  26. private String heure_debut;
  27. private String heure_fin;
  28.  
  29. private String reference_offre;
  30. private int retry;
  31. }
  32.  
  33. ------------------------------------------
  34.  
  35. @Entity
  36. @Table(name ="bob_syga_offr_rejected")
  37. public class SygaOfferRejected extends SygaOffer{
  38.  
  39. }
Add Comment
Please, Sign In to add comment