You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Lenart <cl...@comcast.net> on 2009/06/05 20:12:33 UTC

Hibernate

    I am learning Hibernate and doing examples from a book. I have all
of  the jars the book has, but can't import perstistence.*. It will HSQL
too. Which jar ha S  this?

 

Thanks

Chris Lenart


RE: Hibernate

Posted by Martin Gainty <mg...@hotmail.com>.
one of n number Databases to choose from in
$HIBERNATE_HOME/etc/hibernate.properties

you can enable the properties for the DB entry by removing # in 1st column
or disable the properties of the DB by placing a # in 1st column 
as in this example

## HypersonicSQL is enabled by default
hibernate.dialect org.hibernate.dialect.HSQLDialect
hibernate.connection.driver_class org.hsqldb.jdbcDriver
hibernate.connection.username sa
hibernate.connection.password
hibernate.connection.url jdbc:hsqldb:./build/db/hsqldb/hibernate
#hibernate.connection.url jdbc:hsqldb:hsql://localhost
#hibernate.connection.url jdbc:hsqldb:test

## H2 (www.h2database.com)
#hibernate.dialect org.hibernate.dialect.H2Dialect
#hibernate.connection.driver_class org.h2.Driver
#hibernate.connection.username sa
#hibernate.connection.password
#hibernate.connection.url jdbc:h2:mem:./build/db/h2/hibernate
#hibernate.connection.url jdbc:h2:testdb/h2test
#hibernate.connection.url jdbc:h2:mem:imdb1
#hibernate.connection.url jdbc:h2:tcp://dbserv:8084/sample;     
#hibernate.connection.url jdbc:h2:ssl://secureserv:8085/sample;     
#hibernate.connection.url jdbc:h2:ssl://secureserv/testdb;cipher=AES

## MySQL (important ones are driver_class, url, username and password
#hibernate.dialect org.hibernate.dialect.MySQLDialect
#hibernate.dialect org.hibernate.dialect.MySQLInnoDBDialect
#hibernate.dialect org.hibernate.dialect.MySQLMyISAMDialect
#hibernate.connection.driver_class com.mysql.jdbc.Driver
#hibernate.connection.url jdbc:mysql:///test
#hibernate.connection.username gavin
#hibernate.connection.password

HTH
Martin Gainty 
______________________________________________ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> From: jpyeron@pdinc.us
> To: users@tomcat.apache.org
> Subject: RE: Hibernate
> Date: Fri, 5 Jun 2009 14:28:59 -0400
> 
> Mail the hibernate users list, and I will help there.
> 
> https://lists.jboss.org/mailman/listinfo/hibernate-users
> 
>  
> 
> > -----Original Message-----
> > From: Chris Lenart [mailto:clenart@comcast.net] 
> > Sent: Friday, June 05, 2009 14:13
> > To: users@tomcat.apache.org
> > Subject: Hibernate
> > 
> >     I am learning Hibernate and doing examples from a book. I 
> > have all of  the jars the book has, but can't import 
> > perstistence.*. It will HSQL too. Which jar ha S  this?
> > 
> >  
> > 
> > Thanks
> > 
> > Chris Lenart
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

RE: Hibernate

Posted by Chris Lenart <cl...@comcast.net>.
THANKS

-----Original Message-----
From: Jason Pyeron [mailto:jpyeron@pdinc.us] 
Sent: Friday, June 05, 2009 1:29 PM
To: 'Tomcat Users List'
Subject: RE: Hibernate


Mail the hibernate users list, and I will help there.

https://lists.jboss.org/mailman/listinfo/hibernate-users

 

> -----Original Message-----
> From: Chris Lenart [mailto:clenart@comcast.net]
> Sent: Friday, June 05, 2009 14:13
> To: users@tomcat.apache.org
> Subject: Hibernate
> 
>     I am learning Hibernate and doing examples from a book. I
> have all of  the jars the book has, but can't import 
> perstistence.*. It will HSQL too. Which jar ha S  this?
> 
>  
> 
> Thanks
> 
> Chris Lenart
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Hibernate

Posted by Jason Pyeron <jp...@pdinc.us>.
Mail the hibernate users list, and I will help there.

https://lists.jboss.org/mailman/listinfo/hibernate-users

 

> -----Original Message-----
> From: Chris Lenart [mailto:clenart@comcast.net] 
> Sent: Friday, June 05, 2009 14:13
> To: users@tomcat.apache.org
> Subject: Hibernate
> 
>     I am learning Hibernate and doing examples from a book. I 
> have all of  the jars the book has, but can't import 
> perstistence.*. It will HSQL too. Which jar ha S  this?
> 
>  
> 
> Thanks
> 
> Chris Lenart
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org