Using Eclipse’s Dali to make a jpa(pojo) module with Maven M2 Plugin
(First install M2 Plugin if you have not..I was using Eclipse Ganymede, so Dali was already in, but M2 was not)
1) Created a mvn submodule(to a parent) using maven(m2) plugin
2) Archetype selected was archetype with group-id=com.rfc.maven.archetypes and artifact-id=jpa-maven-archetype
3) Then right-clicked on the submodule project and selected JPA Tools–> convert to JPA Project…
4) In the JPA facet selected Generic, then my db and schema and used openjpa(installed it locally and browsed to it) as the implementation library. Made sure that persistence.xml did not include class names(gives you an error “This mapped class is not specified in persistence unit..” otherwise..No clue why..but thinking it is because there were two persitence.xml files; one from the archetype in src/main/resources/META-INF and the other when using the Dali tool with a persistence.xml under “JPA Content”)
5) After converting to JPA project, right click on submodule project and select JPA Tools—>Generate Entities. This takes me to a screen that would allow me to select all my normalized perfectly designed db tables (synchronizing with persistence.xml was not checked). Once I said ok on that screen, code for entities were generated with no errors..Voila!
==================
Update on Feb 14th 2009: You could skip step 2 and use the Quickstart archetype instead of the jpa archetype and then do the rest of the steps too. Step 2 is a waste if you are using eclipse to convert a project to a JPA project.
Ok folks..we all know the stock-market is a failed idea of capitalism. Otherwise why would we be bailing out mega corporations today?? The US and world economies are in death-throes because of it. So what do people with money do? Try every trick to stimulate a dead-idea via authentic-looking-old-ideas-in-new-bottle-spewing-programs like Ali Velshi’s latest “Gimme back my money” program. A great attempt at rekindling a dead-idea ..the stock-market
Stock-market is a place where we mix fortunes and in the end some in the know win, while others who have zero financial knowledge lose. The whole world’s fortune hangs on this one big pot of money called the stock-market. Such a human financial system is bound to give us more disasters – each time heftier than the previous.
People have to start to think for themselves. We are all urged share a portion of our paychecks in 401Ks so that people who know how all this works can play roulette with that money and make a killing ..while we wait patiently to enjoy until we are 65
. We thereby give up our liquidity and in a dire financial crunch if we were to ask for what we put in, we would be slapped with a penalty — What da @#$@ …it is MY money to start with and if I want to take it back for something I want to do immediately I get penalized?? That is in effect the stock market..So what may be an avenue for me to get out of that financial crunch?? You guessed right…use my credit card and get in more debt thanks to the killing interest rates charged by the ruthless credit card companies… I am more liquid if I have my own cash saved in the bank!
My point is this..we should all save what we throw away in 401Ks, in a bank..Yes, we would have to pay taxes, but it is better than spending sleepless nights thinking about how our money is faring under the greedy eyes of foxes! If a 25 year old person were to save 500 USD per month till 65 years he/she would save at a minimum 180,000. Well that is a given! Stock markets don’t guarantee a penny back…This risk-reward thing is pure bs. If that is not a bs, why are old people working till they fall dead in supermarkets? One could boost that further by investing for a few months in CDs. In a two family scenario, the family could save ~400,000 or more. The stock-market still can’t guarantee a penny back(but can guarantee you a life filled with tension which could give you a heart-attack
)
In the future(at least within the next 10 years), there WILL be universal health. So a couple could live off 500,000 USD. I bet in the middle-class not a lot of people have at least that much in their stock-market when they retire, today. For the kid’s education…well 529 plans and pre-paid college plans guarantee you the money. So invest in those. (In the future students would opt more for online college education and hence there won’t be all this garbage fees to be paid for mortar-brick establishments)
It is time to bring back fixed pensions for retirees. This fast-cash methodology called the Las Vegas..er sorry the stock-market, is a disaster.
And programs like Ali Velshi’s which promote the stock-market and its virtues should be shelved!
That is old-school if anyone considers what it has done to people’s lives(not rich people’s …but the middle-class’s)