dbTalk Databases Forums  

Hibernate SQL Syntax

comp.databases.informix comp.databases.informix


Discuss Hibernate SQL Syntax in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Holger de Wall
 
Posts: n/a

Default Hibernate SQL Syntax - 06-25-2007 , 06:11 AM






Problem with eclipse 3.2.2 plugin 'Hibernate HQL editor' (Hibernate
Tools 3.2.0.beta9a) and IDS 10.00 UC6
----------------------------------------------------
org.hibernate.exception.SQLGrammarException ...

the ourput from Hibernate Dynamic SQL Preview:
SQL #0 types: string, string
-----------------
select
state0_.code as col_0_0_,
state0_.sname as col_1_0_
from
stores.informix.state state0_
------------------

What is to be done in the 'hibernate.cfg.xml' for producing query string
in Informix dialect (select * from stores:informix.state) ??

Any idea?

--
my hibernate.cfg.xml
.................
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property
name="hibernate.bytecode.use_reflection_optimizer" >false</property>
<property
name="hibernate.connection.driver_class">com.infor mix.jdbc.IfxDriver</property>
<property name="hibernate.connection.password">secret</property>
<property
name="hibernate.connection.url">jdbc:informix-sqli://localhost:1526/stores:informixserver=myserver</property>
<property name="hibernate.connection.username">dbuser</property>
<property
name="hibernate.dialect">org.hibernate.dialect.Inf ormixDialect</property>
</session-factory>
</hibernate-configuration>

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.