Question

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.

Was it helpful?

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

OTHER TIPS

A better and more complete documentation you can find at: http://www.hibernate.org/docs.html

Examples of initial settings for Hibernate / database you can use this document: http://www.dzone.com/tutorials/java/hibernate/hibernate-example/hibernate-tools-1.html

Start with some JPA book, Pro EJB 3.0 - Persistence API is good choice.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top