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.
|