This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
I am having hard time understanding JPA. What I want to know is that how to create a java application (JPA) *USING MySQL* , and plain java classes but *NO ENTITY BEANS*, from scratch. Don't want to use any kind of plugins, (such as toplink as people suggest, no). It shouldn't be tied to glassfish server or any other. I've once programmed using hibernate , but it's been a while and I didn't like modify xml files g by hand. I 'll be using it mainly for creating a web application , of course it will use servlets but no Entity beans. But it will be of much help if you let me know how it can be done through *plain java classes*.
At this moment I am not even concerned with MVC pattern , just would like to know how to make a tiniest application using jpa enough to show me how it is deployed.
p.s :- I know how to code in jpa , I am already using it,(because it was deployed by somebody else and I know all CRUD operations) , but I haven't been able to understand how to create such application from scratch.