-->
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: how to integrate EJB3.0 with Hibernate
PostPosted: Mon Dec 14, 2009 2:06 am 
Newbie

Joined: Wed Dec 02, 2009 8:26 am
Posts: 2
Hi Friends,

I am using EJB3.0 with TopLink in Netbeans IDE.Now i want to know how to integrate ejb3.0 with hibernate.Pls let me know the related links.
Thanks in advance.


Top
 Profile  
 
 Post subject: Switch persistence providers?
PostPosted: Mon Dec 14, 2009 4:29 am 
Beginner
Beginner

Joined: Mon Dec 14, 2009 12:26 am
Posts: 23
Are you trying to switch from Toplink to Hibernate as a persistence provider? If so, first upgrade to the latest Netbeans, version 6.8, as it improves management of persistence providers and has better support for Hibernate built-in.

Next, open and modify your persistence.xml . You can just switch persistence providers from the pull-down menu. You may need to add or remove libraries and will probably have to modify your annotated classes once you've made the switch.

If what you are trying to do is NOT simply switch persistence providers, you will need to post a more complete question with an explanation of what you ARE trying to do for someone to be able to help you.


Top
 Profile  
 
 Post subject: Re: how to integrate EJB3.0 with Hibernate
PostPosted: Tue Dec 22, 2009 5:57 am 
Newbie

Joined: Wed Dec 02, 2009 8:26 am
Posts: 2
Hi ,

I want to use Hibernate instead of Toplink ORM tool.I am using Netbeans6.7.
Could you please help me ,how to integrate Hibernate with EJB3.0.

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: how to integrate EJB3.0 with Hibernate
PostPosted: Tue Dec 22, 2009 7:29 am 
Beginner
Beginner

Joined: Mon Dec 14, 2009 12:26 am
Posts: 23
* Upgrade NetBeans
* Open persistence.xml
* change "Persistence Library" from "TopLink" to "Hibernate"
* Make sure to REMOVE the toplink libraries from your library list
* fix any issues this causes

This is just not hard. The IDE does it for you.


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.