[ 
https://issues.apache.org/jira/browse/CASSANDRA-5075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13535391#comment-13535391
 ] 

Alexandr Kulik commented on CASSANDRA-5075:
-------------------------------------------

Hibernate by default use column alias in select statements. For example this is 
hibernate debug log statement:
18.12.2012 23:58:39 *DEBUG* AbstractEntityPersister:  Snapshot select: /* get 
current state com.bipper.bsafe.model.safetymode.UserSafetyModeSession */ select 
usersafety_.id, usersafety_.active as active22_, usersafety_.endDate as 
endDate22_, usersafety_.startDate as startDate22_, usersafety_.user_id as 
user9_22_, usersafety_.userTriggeredTimestamp as userTrig6_22_ from 
user_safety_mode_session usersafety_ where usersafety_.id=? 
(AbstractEntityPersister.java, line 2960)

Even if i don't use joins hibernate still will use column and table alias.
                
> CQL Add support for AS keyword in select
> ----------------------------------------
>
>                 Key: CASSANDRA-5075
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5075
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: API
>            Reporter: Alexandr Kulik
>            Priority: Minor
>
> It would be nice to have support of AS keyword in select statement. It would 
> allow to use jpa frameworks without writing custom sql/cql's. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to