Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 16th, 2012  |  syntax: None  |  size: 0.49 KB  |  hits: 47  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. UniqueCheck on super classes in PlayFramework?
  2. @Entity
  3. @Inheritance(strategy= InheritanceType.JOINED)
  4. abstract class Utilisateur extends Model {
  5.  
  6.     @Unique
  7.     public String email;
  8. ..
  9. }
  10.        
  11. select count(entreprise0_.id) as col_0_0_ from Entreprise entreprise0_ inner join Utilisateur entreprise0_1_ on entreprise0_.id=entreprise0_1_.id where entreprise0_1_.email=? limit ?
  12.        
  13. Candidat.count(
  14.     "select c from Candidat c, Enterprise e where c.email like (?1) and e.email = c.email", email);