Guest User

Untitled

a guest
Jan 23rd, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. public class MenuDTO implements Serializable{
  2. @Id
  3. @Column(name = "Id", nullable = false)
  4. private String idMenu;
  5.  
  6. @Column(name = "Caption", nullable = false)
  7. private String nombre;
  8.  
  9. @Column(name = "NumMenu", nullable = false)
  10. private String numero;
  11. //get y sets
  12. }
  13.  
  14. public class PermisoDTO implements Serializable {
  15. @Id
  16. @Column(name="IdPermiso",nullable=false)
  17. private String idPermiso;
  18. }
  19.  
  20. public class GrupoDTO implements Serializable{
  21. @Id
  22. @Column(name="CodGrupo",nullable=false)
  23. private String idCodGrupo;
  24. }
  25.  
  26. public class UsuarioDTO implements Serializable{
  27. @Id
  28. @Column(name="CodGrupo",nullable=false)
  29. private String idCodGUs;
  30. }
  31.  
  32. select DISTINCT caption AS MENUS
  33. from permisomenu P1 Join permiso P ON IdPermiso=P.Id Join usuario e
  34. ON e.CodGrupo=P.CodGrupo Join grupo g ON g.codgrupo=e.codgrupo
  35. where g.codgrupo like '%admin%'
Add Comment
Please, Sign In to add comment