-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: HQL not being properly translated to Oracle dialect
PostPosted: Wed Nov 27, 2013 4:48 am 
Newbie

Joined: Wed Aug 29, 2012 6:45 am
Posts: 3
I am having this issue:

http://stackoverflow.com/questions/20222192/ora-00979-not-a-group-by-expression-with-hibernate-hql

It is said in an answer that this might be a bug but I am having a hard time believing that, since this is a pretty common kind of query. Also, I am not getting some other queries that produce dialect specific statements for different databases properly translated to Oracle10g dialect.

This is my hibernate.cfg.xml configuration:

Code:
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
        <property name="hibernate.show_sql">true</property>
        <property name="hibernate.format_sql">true</property>
        <property name="use_sql_comments">true</property>

        <property name="hibernate.c3p0.min_size">5</property>
        <property name="hibernate.c3p0.max_size">20</property>
        <property name="hibernate.c3p0.timeout">300</property>
        <property name="hibernate.c3p0.max_statements">50</property>
        <property name="hibernate.c3p0.idle_test_period">300</property>
    </session-factory>
</hibernate-configuration>


And this is my data source configuration (I am using JNDI):
Code:
<bean id="dataSource"
    class="org.springframework.jndi.JndiObjectFactoryBean">
   <property name="jndiName"
      value="java:myJNDIresourceURI"/>
   <property name="lookupOnStartup"
      value="false"/>
   <property name="cache"
      value="true"/>
   <property name="proxyInterface"
      value="javax.sql.DataSource"/>
   </bean>


Any suggestions? I am using Hibernate version 4.2.1final. All of these queries work with a MySQL database. Any query that produce standard, dialect-agnostic SQL works in Oracle.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.