-->
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.  [ 4 posts ] 
Author Message
 Post subject: Configure Informix within Hibernate - JDBC Driver
PostPosted: Fri Mar 03, 2006 1:36 pm 
Newbie

Joined: Fri Mar 03, 2006 1:28 pm
Posts: 9
Hi all.

I consider myself a total novice about configuring databases and database access. I mean massive noob ;) i've searched in the forums here, and around the website, and I couldn't find an answer for such stupid doubt as mine, and as I'm running out of time with this I really had to post this.

I have an Informix database stored, in another system. As I was following that tiny script about how to install hibernate (http://www.hibernate.org/152.html) i got stuck editing etc/hibernate.properties. And this is because i don't know how to configure Informix database access.

I have a couple of files with some configurations but i need a template like all those in that hibernate.propreties file to even imagine how could i configure it.

Anyone could give me some lights here? Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 03, 2006 4:01 pm 
Expert
Expert

Joined: Mon Jan 09, 2006 5:01 pm
Posts: 311
Location: Sacramento, CA
I found this on the hibernate user forum:

http://forum.hibernate.org/viewtopic.php?t=943465&view=previous&sid=0148b7cad04e2a4a269c84f5f6e145e3

for v3 change net.sf to org.hibernate.

<property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
<property name="hibernate.dialect">net.sf.hibernate.dialect.InformixDialect</property>
<property name="connection.driver_class">com.informix.jdbc.IfxDriver</property>
<property name="connection.url">jdbc:informix-sqli://192.168.0.89:1527/proyecto3:INFORMIXSERVER=ol_sistemas2;</property>
<property name="connection.username">XXXX</property>
<property name="connection.password">XXXX</property>
<property name="connection.pool_size">1</property>
<property name="statement_cache.size">25</property>
<property name="proxool.pool_alias">pool1</property>
<property name="hibernate.show_sql">true</property>
<property name="jdbc.batch_size">0</property>
<property name="jdbc.use_streams_for_binary">true</property>

_________________
-JT

If you find my replies helpful, please rate by clicking 'Y' on them. I appreciate it.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 11:11 am 
Newbie

Joined: Fri Mar 03, 2006 1:28 pm
Posts: 9
I Couldn't find that anywhere. That did the trick. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 4:25 pm 
Expert
Expert

Joined: Mon Jan 09, 2006 5:01 pm
Posts: 311
Location: Sacramento, CA
glad it helped.

_________________
-JT

If you find my replies helpful, please rate by clicking 'Y' on them. I appreciate it.


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

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.