[hibernate-issues] [Hibernate-JIRA] Resolved: (ANN-518) Incorrectly generated SQL from MapBinder

Emmanuel Bernard (JIRA) noreply at atlassian.com
Sat Jan 6 11:57:44 EST 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-518?page=all ]
     
Emmanuel Bernard resolved ANN-518:
----------------------------------

    Resolution: Rejected

AS is optional AFAIK in SQL

> Incorrectly generated SQL from MapBinder
> ----------------------------------------
>
>          Key: ANN-518
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-518
>      Project: Hibernate Annotations
>         Type: Bug

>   Components: binder
>     Reporter: Arnout Engelen

>
>
> http://fisheye.jboss.org/browse/Hibernate/trunk/HibernateExt/metadata/src/java/org/hibernate/cfg/annotations/MapBinder.java?r=trunk#l264
> StringBuilder fromAndWhereSb = new StringBuilder( " from " )
>  	                                        .append( associatedClass.getTable().getName() )
>  	                                        .append(" as ").append(alias).append(" where ");
> Should probably be:
> StringBuilder fromAndWhereSb = new StringBuilder( " from " )
>  	                                        .append( associatedClass.getTable().getName() )
>  	                                        .append(alias).append(" where ");

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list