users@glassfish.java.net

Re: Using hibernate instead of toplink

From: Sahoo <Sahoo_at_Sun.COM>
Date: Fri, 10 Aug 2007 09:11:52 +0530

There are some blogs that talk about how to use Hibernate in GlassFish
as a JPA provider. You can find one here:
http://blogs.sun.com/GlassFishPersistence/#use_hibernate_as_a_persistence

The steps are actually very very simple:
1. put the hibernate jar and its dependencies in the
domains/domain1/lib. Restart the server.
2. specify the Hibernate provider name in your persistence.xml and
redeploy the app.

That's it.

Java2DB (a.k.a. automatic table generation) would not work the way it
works for TopLink Essentials. But you can always use the Hibernate
specific settings to get it working.

I should also mention that the steps to use OpenJPA or any other
provider are also the same.

Hop that helps,
Sahoo

glassfish_at_javadesktop.org wrote:
> How would you go about using hibernate as the persitence provider instead of toplink? Which reference manual explains it?
> [Message sent by forum member 'pmurray_bigpond' (pmurray_bigpond)]
>
> http://forums.java.net/jive/thread.jspa?messageID=230377
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>