Search code examples
javahibernatejpaopenjpa

Steps to create a simple JPA code


I am new to Eclipse/Java world and to JPA as well, but I have read all the basics of how to use and all.

I get it that JPA is framework which helps to map the objects to relation databases but in layman terms how do we create a DB to support it and how to create a sample program. I have followed a lot on internet where exact code is given but no where told how to create the database or the connection for it?

I have tried to install JBoss Tools for Hibernate support but I can't get a simple example out of it. I have the code to run but can't figure out how to configure the db connection and how to join it with the code?

Can anyone please guide me ahead.


Solution

  • try this link

    http://www.tkhts.com/orm-tools/hibernate/index.jsp

    they have videos and screenshots and code available.

    I hope it'll be really helpful. And it's all done with eclipse