This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 17249
    
    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: 17249
    
    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
 
 
subject: Hibernate dialect
 
Similar Threads
Exception while getting transaction
Standalone JPA example
Hibernate: Error getting property 'lastItem'
How to use JUnit and EJB3
@OneToMany new reference table is generated.