I fixed EJBQLToSQL92Compiler. The generated SQL is
| SELECT t0_ps_permiso.permisosId, t0_ps_permiso.autorizado, t0_ps_permiso.SERVICIOS_FK, t0_ps_permiso.AP_FK, t0_ps_permiso.METODOS_FK | FROM SECURITYUSUARIOS t2_u INNER JOIN SECURITYPERFILESUSUARIOS t4_pfs ON t2_u.UId=t4_pfs.U_FK | INNER JOIN SECURITYPERFILES t5_pfs_perfil ON t4_pfs.PERFILES_FK=t5_pfs_perfil.perfilesId | INNER JOIN SECURITYPERMISOSPERFILES t1_ps ON t5_pfs_perfil.perfilesId=t1_ps.PERFILES_FK | LEFT OUTER JOIN SECURITYPERMISOS t0_ps_permiso ON t1_ps.PERMISOS_FK=t0_ps_permiso.permisosId | LEFT OUTER JOIN SECURITYSERVICIOS t6_ps_permiso_servicio ON t0_ps_permiso.SERVICIOS_FK=t6_ps_permiso_servicio.serviciosId | LEFT OUTER JOIN SECURITYMETODOS t7_ps_permiso_metodo ON t0_ps_permiso.METODOS_FK=t7_ps_permiso_metodo.metodosId | LEFT OUTER JOIN SECURITYAPLICACIONES t3_ps_permiso_aplicacion ON t0_ps_permiso.AP_FK=t3_ps_permiso_aplicacion.apId | WHERE t2_u.login = ? AND t0_ps_permiso.autorizado = ? AND t3_ps_permiso_aplicacion.nombre = ? AND t0_ps_permiso.SERVICIOS_FK IS NULL AND t0_ps_permiso.METODOS_FK IS NULL | This is what I would expect for your query. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838453#3838453 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838453 ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
