ResultTransformer with createSQLQuery forces no camelCase in entity fields

前端 未结 3 529
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-07 03:10

I have an sql query as follows:

List employees = getCurrentSession()
                    .createSQLQuery(
                            \"select\"
         


        
3条回答
  •  执念已碎
    2021-02-07 03:44

    It might be related to how ( and if ) you configured your NamingStrategy

    http://matthew.mceachen.us/blog/hibernate-naming-strategies-20.html

    or

    if you're using MySQL to weather or not you've enabled case sensitive table/column names http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html

提交回复
热议问题