can someone help me to find a step-by-step example for developing JDO in a gwt project?
I really want to know and learn the jdo and differences between that and jpa
RGDS
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have used both jdo and jpa. I find it much easier using jpa for my work. If you are using datanucleus then you should look at the documentation on app engine located below.
JDO
https://developers.google.com/appengine/docs/java/datastore/jdo/overview-dn2
JPA
https://developers.google.com/appengine/docs/java/datastore/jpa/overview-dn2
These are the newer specs for app engine and if you are not using these then just about any database should be fairly straight forward.
I personally use jpa, request factory, service locators and a Dao pattern for accessing my objects. Here is something I posted earlier that has some code samples that may help. If you are not using app engine then a normal Long key should be easier.
GAE Datastore with GWT, making more friendly/smaller keys
You should also look at using a Servlet Filter for handling your EntityManager so that requestfactory can handle fetching your object graph using the .with(“childGetterMethod”) clause. This will save you quite a bit of coding to fetch child entities while the servlet filter handles opening and closing your entity manager.