Can I pass an objectify entity (i.e class annotated by @Entity) to a function accepting com.google.appengine.api.datastore.Entity ?
Can I pass an objectify entity (i.e class annotated by @Entity ) to a
Share
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.
No. Java is a typed language. You can only pass subclasses of com.google.appengine.api.datastore.Entity to a function which accepts com.google.appengine.api.datastore.Entity. Anything else won’t compile.