File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Hibernate dialect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate dialect" Watch "Hibernate dialect" New topic
Author

Hibernate dialect

arief hidayat
Ranch Hand

Joined: Apr 13, 2007
Posts: 33
Hi,

I am using TopLink but when I run my apps on Tomcat 5.5 (netbeans 5.5.1)... it says



I don't use Hibernate at all

Here is my persistence unit


Any enlightenment?

Thanks
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

I think you need to have a Connection Pool. I am sure TopLink comes with a Connection Pool class etc for you. You need to define a connection pool.

No idea why you get a Hibernate error though.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
arief hidayat
Ranch Hand

Joined: Apr 13, 2007
Posts: 33
Originally posted by Mark Spritzler:
I think you need to have a Connection Pool. I am sure TopLink comes with a Connection Pool class etc for you. You need to define a connection pool.

No idea why you get a Hibernate error though.

Mark


Could you tell me what is the different between using connection pool or not?
I don't really understand on this matter.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

OK a Connection pool stores JDBC Connection objects, so an ORM needs a JDBC Connection to connect to the database. The ORM products themselves do not create these Connections or pools, It gets them from a Connection Pool. So the ORM requires you to configure a connection pool. Hibernate for instance, comes with C3PO, which you can configure the pool in the hibernate.cfg.xml.

Unfortunately, I do not know what TopLink comes with, so I can't tell you which Connection Pool implementation it uses.

If you are deploying in say An App Server, then you can create a DataSource and that would use/create a Container created ConnectionPool.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate dialect