The reason your class instances are not available outside of the app engine jvm is that they have been altered/instrumented by the persistence manager. See step 3 of this tutorial http://www.datanucleus.org/products/accessplatform_1_0/guides/jdo/tutorial.html <http://www.datanucleus.org/products/accessplatform_1_0/guides/jdo/tutorial.html> There are several approaches to designing around this requirement. For pure java - create Data Transfer Objects that match your persistent classses. I do this because it provides fine control of the externally visible model and not expose the entire internal model. Another approach is to use Objectify http://code.google.com/p/objectify-appengine/ Other people like Gilead http://sourceforge.net/projects/gilead/
On Mon, Dec 20, 2010 at 12:29 AM, Ahmed Shoeib < [email protected]> wrote: > now i want to use this bean class outside server package > but i face problem during compilation with ( com.google.appengine ) > that can't be resolved. > > @PersistenceCapable(identityType = IdentityType.APPLICATION, > detachable = "true") > public class HTNews { > > @PrimaryKey > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) > private Key id; > @Persistent > private String name; > @Persistent > private String linkUrl; > @Persistent > private BlobKey imageKey; > ..... > > > is there any way to do that ?? > please help . > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
