[google-appengine] Migration from gae datastore java API to MySQL

2013-02-13 Thread Cesar Ruiz
I was wondering if it is possible to migrate from gae datastore (Java API) 
to MySQL... is there exist an bulkdownloader as for python.

What is the best approach for doing this maybe using JPA?.

please I need some help as it has been 5 days already looking for something 
before getting my hands dirty with code.

Thank you very much in advanced.

Regards.

A desperate man.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [appengine-java] can't retreive one-to-may objetcs, JPA

2011-01-18 Thread Cesar Ruiz
What do you mean by need to access to the subjects field before closing the
em?. Do you mean, with the em,  retreive the list of subjects and the add
them to the list of books?. (That's a workaround, but it is not efficient),
It's supposed to retreive the books completly with their subjetcs also, I
might be doing something wrong in the Entities.

Please soome help.

On 18 January 2011 00:30, Stephen Johnson onepagewo...@gmail.com wrote:

 I don't do JPA, but If it's like JDO and you have lazy loading then don't
 you need to access the subjects field before you close your entity manager
 to get the subjects loaded? Just a thought.


 On Mon, Jan 17, 2011 at 3:51 PM, kidowell crui...@gmail.com wrote:

 I cannot retreive the Listsubjects from book. The save and update of a
 book when a subject changes its fine, the problem is when retreiving books,
 It doeesnt retreive their subjects. I need help. Here;s the code.

 @Entity
 @Table(name = book)
 public class Book implements Serializable, IsSerializable {

 @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 private Key id;
 private String bookName;
 private String comment;
 @OneToMany(mappedBy=book,cascade = CascadeType.ALL)
 private ListSubject subjects;

 //setters and getters

 --

 @Entity
 @Table(name = subject)
 public class Subject implements Serializable, IsSerializable {

 @Id
 @GeneratedValue(strategy = GenerationType.IDENTITY)
 private Key id;
 private String name;
 private int visible;
 @Basic
 private Text content;
 @Basic
 @ManyToOne
 private Book book;
 // setters and getters


 

  public ListBook getBooks() throws GeneralException,
 BookNotFoundException, NullParameterException {
 entityManager = EMF.get().createEntityManager();
 ListBook list;
  try {
 String sql = SELECT b FROM Book b;
 list =
 entityManager.createQuery(sql).getResultList();  //this list is
 retreived with the books but without their subjects
 } catch (Exception e) {
 throw new GeneralException(Exception in method getBookes:  +
 e.getMessage());
 } finally {
 if (entityManager.isOpen()) {
 entityManager.close();
 }
 }
 if (list == null || list.isEmpty()) {

 throw new BookNotFoundException(Book not found in method
 getBookes);
 }
 return list;
 }


 Please, I need some help.

 Cheers.

 --
 Kido.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Cesar Ruiz.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: The import com.google.appengine cannot be resolved

2011-01-08 Thread Cesar Ruiz
Yes, I did it, it is there in the link.

It works very nicely.

Cheers.

--
Kido.

On 8 January 2011 14:24, Didier Durand durand.did...@gmail.com wrote:

 Hi,

 I checked it: interesting!

 Can we obtain the source code of it ?
 didier

 On Jan 8, 1:43 pm, Cesar Ruiz crui...@gmail.com wrote:
  Hey Ddier, thank you for helping.
 
  I found a better way, that having a same object in a separated way,
 (Imagine
  the case when I need to do the same for 20 objects).
 
  The answer is here, it works sweetly.
 
  http://blog.js-development.com/2010/02/gwt-app-engine-and-app-engine-...
 
  Thank you very much.
 
  On 8 January 2011 07:16, Didier Durand durand.did...@gmail.com wrote:
 
   Hi,
 
   You  only have to move the source file of your class from src/package/
   name/of/your/appl/client (where it is now) to src/package/name/of/your/
   appl/server and change all the references of users of this classes to
   new name : i.e. package.name.of.your.appl.client to
   package.name.of.your.appl.srv.
 
   Then your source code is ready to be compiled and you shouldn't get
   any more complaint from GWT requiring the source code.
 
   But, you'll still have to write the dto object that I mentionned
   earlier and that Ikai Lan from Google also recommends in your new
   question of this forum (http://groups.google.com/group/google-
   appengine-java/browse_thread/thread/df0426ab46e25905#)
 
   regards
 
   didier
 
   On Jan 7, 4:13 pm, Cesar Ruiz crui...@gmail.com wrote:
Indeed, I am using GWT, oh I understand what you're saying. But the
 pojo
that will contain the Text attribute is in the client side (in the
 same
package that the MainEntryPoint.java).
 
@Entity
@Table(name = book)
public class Book implements Serializable {
 
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String name;
private String uriPath;
private Text content;
 
getters and setters...
 
 The method on the server side is:
 
public Book setBookContent(String bookName, String content) throws
GeneralException, BookNotFoundException, NullParameterException {
entityManager = EMF.get().createEntityManager();
Book book = null;
Text contentText = new Text(content);
try {
book = loadBookByName(bookName);
book.setContent(contentText);   //here the pojo will have
 the
Text attribute, but the pojo is in the client side
saveBook(book);
} catch (BookNotFoundException b) {
}  finally {
entityManager.close();
}
return book;
}
 
Will I have to move the pojo Book in the server side. If yes can you
   please
give me a hand, because the other day I tried and I couldnt.
 
Thank you for you help.
 
--
Kido.
 
On 7 January 2011 15:31, Didier Durand durand.did...@gmail.com
 wrote:
 
 I think that I understand through the words inheritance  module:
 aren't you using Google Web Toolkit ? (GWT)
 
 If yes, you can't use the Text class in you front-end: you have to
 use
 a String in the front-end move it to the server via the GWT RPC and
 then convert it to a Text in an annotated Pojo that you will then
 be
 able to store in the datastore
 
 regards
 
 didier
 
 On Jan 7, 3:08 pm, Cesar Ruiz crui...@gmail.com wrote:
  I realized the jar is included aproperly in the classpath, As it
 does
   it
  automatically when choosing GAE as a server.
 
  I also manually added the jar in the classpath, but nothing
 happens
 
  It still is throwing the error.
 
  The import com.google.appengine cannot be resolved
   [ERROR] Hint: Check the inheritance chain from your module; it
 may
   not
 be
  inheriting a required module or a module may not be adding its
 source
 path
  entries properly
 
  --
  kido.
 
  On 7 January 2011 15:04, Didier Durand durand.did...@gmail.com
   wrote:
 
   No, you don't need the source code: I use Text very often based
 on
   the
   compiled version that is in the jar
 appengine-api-1.0-sdk-1.3.8.jar
   (for v 1.3.8 under Eclipse)
 
   Just obtain from somebody else how to put this jar in you
 classpath
   and everything will be ok
 
   btw, did you install the App Engine SDK in your Netbeans? When
   properly done, it should take care of your classpath issue as
 it
   does
   under Eclipse (classpath is set up properly for all needed jars
 by
   the
   SDK there)
 
   regards
 
   didier
 
   On Jan 7, 2:54 pm, Cesar Ruiz crui...@gmail.com wrote:
:( . When I see the com.google.appengine.api.datastore and
 look
   for
 the
class Text, I try to open it but I it says: no source code.
 I
   think
 I
   need
the sourse code, rather than the .class.
 
I'm stuck

Re: [appengine-java] Re: The import com.google.appengine cannot be resolved

2011-01-07 Thread Cesar Ruiz
Sorry, I am using the same type (I wrote it wronly before). Im using
com.google.appengine.api.datastore.Text. But it is always showing me the
same error when compiling.

It is somehow not finding the source code. I only provide it the Text.class
not the .java. I do not know if this has anything to do.

Another suggestion?.

Thank you.

On 7 January 2011 09:15, Didier Durand durand.did...@gmail.com wrote:

 Hi,

 Check
 http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types

 The type you want to use is probably :
 com.google.appengine.api.datastore.Text (i.e with api.datatstore, in
 the name) and not com.google.appengine.Text as you say

 regards

 didier

 On Jan 7, 8:52 am, kidowell crui...@gmail.com wrote:
  Hey I'm stuck at something, I just wanted to use the
  com.google.appengine.Text, so I can store an any sized String into the
  Datastore.
 
  But when compiling I receive this error: The import com.google.appengine
  cannot be resolved.
 
  I read in another forum a workaround when using com.google.appengine.Key.
  But they provided the code for the class Key, something I do not have for
  Text.
 
  I need some help. Thank you in advanced.
 
  --
  Kido.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Cesar Ruiz.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: The import com.google.appengine cannot be resolved

2011-01-07 Thread Cesar Ruiz
I Compile with NetBeans. How can I set my clathpath manually, or if you know
in NetBeans even better.

regards.

César Ruiz.

On 7 January 2011 09:53, Didier Durand durand.did...@gmail.com wrote:

 Hi,

 If your classname is correct, then the problem most probably com from
 your classpath when compiling / editing

 Where do you compile ? In Eclipse ? If yes, you should publish
 your .classpath file (root directory of your project)

 regards
 didier

 On Jan 7, 9:41 am, Cesar Ruiz crui...@gmail.com wrote:
  Sorry, I am using the same type (I wrote it wronly before). Im using
  com.google.appengine.api.datastore.Text. But it is always showing me
 the
  same error when compiling.
 
  It is somehow not finding the source code. I only provide it the
 Text.class
  not the .java. I do not know if this has anything to do.
 
  Another suggestion?.
 
  Thank you.
 
  On 7 January 2011 09:15, Didier Durand durand.did...@gmail.com wrote:
 
 
 
   Hi,
 
   Check
  http://code.google.com/appengine/docs/java/datastore/entities.html#Pr.
 ..
 
   The type you want to use is probably :
   com.google.appengine.api.datastore.Text (i.e with api.datatstore, in
   the name) and not com.google.appengine.Text as you say
 
   regards
 
   didier
 
   On Jan 7, 8:52 am, kidowell crui...@gmail.com wrote:
Hey I'm stuck at something, I just wanted to use the
com.google.appengine.Text, so I can store an any sized String into
 the
Datastore.
 
But when compiling I receive this error: The import
 com.google.appengine
cannot be resolved.
 
I read in another forum a workaround when using
 com.google.appengine.Key.
But they provided the code for the class Key, something I do not have
 for
Text.
 
I need some help. Thank you in advanced.
 
--
Kido.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
  --
  Cesar Ruiz.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Cesar Ruiz.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: The import com.google.appengine cannot be resolved

2011-01-07 Thread Cesar Ruiz
:( . When I see the com.google.appengine.api.datastore and look for the
class Text, I try to open it but I it says: no source code. I think I need
the sourse code, rather than the .class.

I'm stuck :(.

On 7 January 2011 14:51, Didier Durand durand.did...@gmail.com wrote:

 Hi,

 Sorry: I work only on Eclipse. But, I guess other people of this forum
 knowing Netbeans will take over.

 Good luck!

 didier

 On Jan 7, 2:35 pm, Cesar Ruiz crui...@gmail.com wrote:
  I Compile with NetBeans. How can I set my clathpath manually, or if you
 know
  in NetBeans even better.
 
  regards.
 
  César Ruiz.
 
  On 7 January 2011 09:53, Didier Durand durand.did...@gmail.com wrote:
 
 
 
   Hi,
 
   If your classname is correct, then the problem most probably com from
   your classpath when compiling / editing
 
   Where do you compile ? In Eclipse ? If yes, you should publish
   your .classpath file (root directory of your project)
 
   regards
   didier
 
   On Jan 7, 9:41 am, Cesar Ruiz crui...@gmail.com wrote:
Sorry, I am using the same type (I wrote it wronly before). Im using
com.google.appengine.api.datastore.Text. But it is always showing
 me
   the
same error when compiling.
 
It is somehow not finding the source code. I only provide it the
   Text.class
not the .java. I do not know if this has anything to do.
 
Another suggestion?.
 
Thank you.
 
On 7 January 2011 09:15, Didier Durand durand.did...@gmail.com
 wrote:
 
 Hi,
 
 Check

 http://code.google.com/appengine/docs/java/datastore/entities.html#Pr.
   ..
 
 The type you want to use is probably :
 com.google.appengine.api.datastore.Text (i.e with api.datatstore,
 in
 the name) and not com.google.appengine.Text as you say
 
 regards
 
 didier
 
 On Jan 7, 8:52 am, kidowell crui...@gmail.com wrote:
  Hey I'm stuck at something, I just wanted to use the
  com.google.appengine.Text, so I can store an any sized String
 into
   the
  Datastore.
 
  But when compiling I receive this error: The import
   com.google.appengine
  cannot be resolved.
 
  I read in another forum a workaround when using
   com.google.appengine.Key.
  But they provided the code for the class Key, something I do not
 have
   for
  Text.
 
  I need some help. Thank you in advanced.
 
  --
  Kido.
 
 --
 You received this message because you are subscribed to the Google
   Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 google-appengine-java%252bunsubscr...@googlegroups.comgoogle-appengine-java%25252bunsubscr...@googlegroups.com
 
 
 .
 For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.
 
--
Cesar Ruiz.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
  --
  Cesar Ruiz.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Cesar Ruiz.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: The import com.google.appengine cannot be resolved

2011-01-07 Thread Cesar Ruiz
I realized the jar is included aproperly in the classpath, As it does it
automatically when choosing GAE as a server.

I also manually added the jar in the classpath, but nothing happens

It still is throwing the error.

The import com.google.appengine cannot be resolved
 [ERROR] Hint: Check the inheritance chain from your module; it may not be
inheriting a required module or a module may not be adding its source path
entries properly

--
kido.

On 7 January 2011 15:04, Didier Durand durand.did...@gmail.com wrote:

 No, you don't need the source code: I use Text very often based on the
 compiled version that is in the jar appengine-api-1.0-sdk-1.3.8.jar
 (for v 1.3.8 under Eclipse)

 Just obtain from somebody else how to put this jar in you classpath
 and everything will be ok

 btw, did you install the App Engine SDK in your Netbeans? When
 properly done, it should take care of your classpath issue as it does
 under Eclipse (classpath is set up properly for all needed jars by the
 SDK there)

 regards

 didier

 On Jan 7, 2:54 pm, Cesar Ruiz crui...@gmail.com wrote:
  :( . When I see the com.google.appengine.api.datastore and look for the
  class Text, I try to open it but I it says: no source code. I think I
 need
  the sourse code, rather than the .class.
 
  I'm stuck :(.
 
  On 7 January 2011 14:51, Didier Durand durand.did...@gmail.com wrote:
 
 
 
   Hi,
 
   Sorry: I work only on Eclipse. But, I guess other people of this forum
   knowing Netbeans will take over.
 
   Good luck!
 
   didier
 
   On Jan 7, 2:35 pm, Cesar Ruiz crui...@gmail.com wrote:
I Compile with NetBeans. How can I set my clathpath manually, or if
 you
   know
in NetBeans even better.
 
regards.
 
César Ruiz.
 
On 7 January 2011 09:53, Didier Durand durand.did...@gmail.com
 wrote:
 
 Hi,
 
 If your classname is correct, then the problem most probably com
 from
 your classpath when compiling / editing
 
 Where do you compile ? In Eclipse ? If yes, you should publish
 your .classpath file (root directory of your project)
 
 regards
 didier
 
 On Jan 7, 9:41 am, Cesar Ruiz crui...@gmail.com wrote:
  Sorry, I am using the same type (I wrote it wronly before). Im
 using
  com.google.appengine.api.datastore.Text. But it is always
 showing
   me
 the
  same error when compiling.
 
  It is somehow not finding the source code. I only provide it the
 Text.class
  not the .java. I do not know if this has anything to do.
 
  Another suggestion?.
 
  Thank you.
 
  On 7 January 2011 09:15, Didier Durand durand.did...@gmail.com
   wrote:
 
   Hi,
 
   Check
 
  http://code.google.com/appengine/docs/java/datastore/entities.html#Pr.
 ..
 
   The type you want to use is probably :
   com.google.appengine.api.datastore.Text (i.e with
 api.datatstore,
   in
   the name) and not com.google.appengine.Text as you say
 
   regards
 
   didier
 
   On Jan 7, 8:52 am, kidowell crui...@gmail.com wrote:
Hey I'm stuck at something, I just wanted to use the
com.google.appengine.Text, so I can store an any sized String
   into
 the
Datastore.
 
But when compiling I receive this error: The import
 com.google.appengine
cannot be resolved.
 
I read in another forum a workaround when using
 com.google.appengine.Key.
But they provided the code for the class Key, something I do
 not
   have
 for
Text.
 
I need some help. Thank you in advanced.
 
--
Kido.
 
   --
   You received this message because you are subscribed to the
 Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 google-appengine-java%252bunsubscr...@googlegroups.comgoogle-appengine-java%25252bunsubscr...@googlegroups.com
 
 
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 google-appengine-java%252bunsubscr...@googlegroups.comgoogle-appengine-java%25252bunsubscr...@googlegroups.com
 
   google-appengine-java%252bunsubscr...@googlegroups.comgoogle-appengine-java%25252bunsubscr...@googlegroups.com
 google-appengine-java%25252bunsubscr...@googlegroups.comgoogle-appengine-java%2525252bunsubscr...@googlegroups.com
 
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
  --
  Cesar Ruiz.
 
 --
 You received this message because you are subscribed

Re: [appengine-java] Re: The import com.google.appengine cannot be resolved

2011-01-07 Thread Cesar Ruiz
Indeed, I am using GWT, oh I understand what you're saying. But the pojo
that will contain the Text attribute is in the client side (in the same
package that the MainEntryPoint.java).

@Entity
@Table(name = book)
public class Book implements Serializable {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String name;
private String uriPath;
private Text content;

getters and setters...

 The method on the server side is:

public Book setBookContent(String bookName, String content) throws
GeneralException, BookNotFoundException, NullParameterException {
entityManager = EMF.get().createEntityManager();
Book book = null;
Text contentText = new Text(content);
try {
book = loadBookByName(bookName);
book.setContent(contentText);   //here the pojo will have the
Text attribute, but the pojo is in the client side
saveBook(book);
} catch (BookNotFoundException b) {
}  finally {
entityManager.close();
}
return book;
}

Will I have to move the pojo Book in the server side. If yes can you please
give me a hand, because the other day I tried and I couldnt.

Thank you for you help.

--
Kido.

On 7 January 2011 15:31, Didier Durand durand.did...@gmail.com wrote:

 I think that I understand through the words inheritance  module:
 aren't you using Google Web Toolkit ? (GWT)

 If yes, you can't use the Text class in you front-end: you have to use
 a String in the front-end move it to the server via the GWT RPC and
 then convert it to a Text in an annotated Pojo that you will then be
 able to store in the datastore

 regards

 didier

 On Jan 7, 3:08 pm, Cesar Ruiz crui...@gmail.com wrote:
  I realized the jar is included aproperly in the classpath, As it does it
  automatically when choosing GAE as a server.
 
  I also manually added the jar in the classpath, but nothing happens
 
  It still is throwing the error.
 
  The import com.google.appengine cannot be resolved
   [ERROR] Hint: Check the inheritance chain from your module; it may not
 be
  inheriting a required module or a module may not be adding its source
 path
  entries properly
 
  --
  kido.
 
  On 7 January 2011 15:04, Didier Durand durand.did...@gmail.com wrote:
 
 
 
   No, you don't need the source code: I use Text very often based on the
   compiled version that is in the jar appengine-api-1.0-sdk-1.3.8.jar
   (for v 1.3.8 under Eclipse)
 
   Just obtain from somebody else how to put this jar in you classpath
   and everything will be ok
 
   btw, did you install the App Engine SDK in your Netbeans? When
   properly done, it should take care of your classpath issue as it does
   under Eclipse (classpath is set up properly for all needed jars by the
   SDK there)
 
   regards
 
   didier
 
   On Jan 7, 2:54 pm, Cesar Ruiz crui...@gmail.com wrote:
:( . When I see the com.google.appengine.api.datastore and look for
 the
class Text, I try to open it but I it says: no source code. I think
 I
   need
the sourse code, rather than the .class.
 
I'm stuck :(.
 
On 7 January 2011 14:51, Didier Durand durand.did...@gmail.com
 wrote:
 
 Hi,
 
 Sorry: I work only on Eclipse. But, I guess other people of this
 forum
 knowing Netbeans will take over.
 
 Good luck!
 
 didier
 
 On Jan 7, 2:35 pm, Cesar Ruiz crui...@gmail.com wrote:
  I Compile with NetBeans. How can I set my clathpath manually, or
 if
   you
 know
  in NetBeans even better.
 
  regards.
 
  César Ruiz.
 
  On 7 January 2011 09:53, Didier Durand durand.did...@gmail.com
   wrote:
 
   Hi,
 
   If your classname is correct, then the problem most probably
 com
   from
   your classpath when compiling / editing
 
   Where do you compile ? In Eclipse ? If yes, you should publish
   your .classpath file (root directory of your project)
 
   regards
   didier
 
   On Jan 7, 9:41 am, Cesar Ruiz crui...@gmail.com wrote:
Sorry, I am using the same type (I wrote it wronly before).
 Im
   using
com.google.appengine.api.datastore.Text. But it is always
   showing
 me
   the
same error when compiling.
 
It is somehow not finding the source code. I only provide it
 the
   Text.class
not the .java. I do not know if this has anything to do.
 
Another suggestion?.
 
Thank you.
 
On 7 January 2011 09:15, Didier Durand 
 durand.did...@gmail.com
 wrote:
 
 Hi,
 
 Check
 

 http://code.google.com/appengine/docs/java/datastore/entities.html#Pr.
   ..
 
 The type you want to use is probably :
 com.google.appengine.api.datastore.Text (i.e with
   api.datatstore,
 in
 the name) and not com.google.appengine.Text as you say
 
 regards
 
 didier
 
 On Jan 7, 8:52 am, kidowell crui...@gmail.com wrote:
  Hey

Re: [appengine-java] JPA query(JPQL) setFirstResult() and setMaxResult() does not work

2010-12-27 Thread Cesar Ruiz
Are you using RCP when calling the list?.

On 27 December 2010 07:01, Mike Guo gsun...@gmail.com wrote:

 hi All:
 i posted this problem on GWT forum but i think it's better to place here,
 as it has no related to GWT.

 see here:

 https://groups.google.com/forum/?lnk=gstq=ClassNotResolvedException#!topic/google-web-toolkit/uEkludbtwpghttps://groups.google.com/forum/?lnk=gstq=ClassNotResolvedException#%21topic/google-web-toolkit/uEkludbtwpg

 thanks.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Cesar Ruiz.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] GWT and GAE debugging problem

2010-12-23 Thread Cesar Ruiz
Yest, its fixed!.

But another real important question appeared. When trying to retrieve the
list of objects Book, an exception is thrown, sayin:

GRAVE: javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
com.google.gwt.user.client.
rpc.SerializationException: Type
'org.datanucleus.store.appengine.query.StreamingQueryResult' was not
included in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded.

Apparently, its a big problem Google hasnt fixed yet?. What can I do?.

Thank you.


On 22 December 2010 21:39, Ikai Lan (Google)
ikai.l+gro...@google.comikai.l%2bgro...@google.com
 wrote:

 Have you asked your question here?

 http://groups.google.com/group/Google-Web-Toolkit

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blogger: http://googleappengine.blogspot.com
 Reddit: http://www.reddit.com/r/appengine
 Twitter: http://twitter.com/app_engine



 On Wed, Dec 15, 2010 at 10:06 AM, kidowell crui...@gmail.com wrote:

 Hey.

 Im starting with GAE, and im making an RCP program (a book address), on
 the server side I've got all the methods for manipulating the datastore (I'm
 using JPA), and on the client side I'm using GWT as a framework.

 When debugging it turns out, that I can only see the server side, and
 program never stops in any breakpoint on the client side.

 Is there any way that I can debug on both side sas the program runs.
 Because, just debugging on the server side is not very helpful.

 Thank you in advanced for your recomendation.

 Kido.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Cesar Ruiz.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Cant retrieve a list of objects when using GAE and JPA.

2010-12-22 Thread Cesar Ruiz
Hey can you please explaine me the DTO way, with some code or an example, I
really need to retrieve those objects. Thank you in advanced.

Kido.

On 21 December 2010 20:18, Stevko andy.ste...@gmail.com wrote:

 I may be dated on this with not keeping up on the latest gwt advances.
 The problems is a JPA or JDO augmented class is not directly
 portable (serialize/deserialize)  from the GAE/J class to a GWT/js class
 like non-persistent classes are.

 The classic DTO case (and not elegant) is to copy+paste your persistent
 classes into a shared model w/o the database twist and write the
 transporters.
 Many folks today have decided to skip the JPA layer and use Objectify for
 GAE database access. Its led to less headaches for some bloggers.




  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Cesar Ruiz.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: GWT Designer for NetBeans

2010-12-16 Thread Cesar Ruiz
True. Moved already.

Cheers.

Kido.

On 16 December 2010 04:03, Didier Durand durand.did...@gmail.com wrote:

 Hi,

 A more appropriate place to post this question is
 http://groups.google.com/group/google-web-toolkit
 regards
 didier

 On Dec 15, 8:03 pm, kidowell crui...@gmail.com wrote:
  Hey, is there any gwt designer for NetBeans out there?.
 
  It would be nice to place all the design and receive automatically the
 code
  for it.
 
  I have read theres a plugin for Eclipse but I can't find anything for
  NetBeans.
 
  Any sugestion?.
 
  Cheers.
 
  Kido.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Cesar Ruiz.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Can't save an object into the Datasore (JPA)

2010-12-14 Thread Cesar Ruiz
Hey, thank you for replying.

but what exactly do you mean by starting the local environment services, I
created the Datastore indexes.xml and Im using the google plugin.

I ran the app and it worked but it doesnt create the local_db file, I
deployed it to the google cloud it worked aswell.

The problem is in development mode and the exception is thrown on the line
entityTransaction.beging().

When I choose *Run GWT Dev Mode on Google App Engine *(on Netbeans) (Im
also using gwt as a framework), it tells me:

Please set the AppEngine Agent environment variable. Add
appengine.agent={path-to-appengine-installation}/lib/agent/appengine-agent.jar
to the file: {path-to-this-project}/nbproject/private/private.properties

Wich I did manually (opened the properties file and wrote the path of the
appengine-agent jar). But it keeps erasing itself. How should I configure
the appengine-agent, maybe thats the problem.

Thank you in advanced.

Kido.



On 14 December 2010 05:35, Didier Durand durand.did...@gmail.com wrote:

 Hi,

 Do you get this on the local dev server n your IDE ? If yes, it comes
 become you didn't start the local environnement services: see
 http://code.google.com/appengine/docs/java/tools/devserver.html

 On Dec 13, 8:28 pm, kidowell crui...@gmail.com wrote:
  Hey I'm new at this, I just want to use the Google datastore, I made a
  persistence object but when it comes to save it to the datastore an
  exception is caught saying No environment variable is registered for
  this thread.
 
  When debugging the exception is thrown on the line
  the entityTransaction.begin();
 
  I'm using NetBeans and JPA. I havent found yet an example where a
  persistent object is save to the datastore.
 
  Please it's been 5 days since I have been trying to save something to
  the datastore. I really need some help. Thank you in advanced.
 
  Kido.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Cesar Ruiz.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: 回复: Re: [appengine-java] Re: Can't save an object into the Datasore (JPA)

2010-12-14 Thread Cesar Ruiz
Hey Didier, the problem was solved, thank you very much indeed. Now I can
debug my app and I can save my objects in the datastore.

Thank you a lot, cheers.

Kido.

2010/12/14 Didier Durand durand.did...@gmail.com

 Hi,

 Starting the local dev environment is fully described here:
 http://code.google.com/appengine/docs/java/tools/devserver.html

 if you don't succeed, let us know and I'll post some of my own code
 how I do it

 regards

 didier

 On Dec 14, 12:38 pm, Liang Ding dl88...@gmail.com wrote:
  又发现一个中国人 ;-)
 
  2010/12/14 EtuO nbaer...@gmail.com
 
 
 
   看不懂
 
   在 2010-12-14 下午7:29,Cesar Ruiz crui...@gmail.com编写:
 
   Hey, thank you for replying.
 
   but what exactly do you mean by starting the local environment
 services, I
   created the Datastore indexes.xml and Im using the google plugin.
 
   I ran the app and it worked but it doesnt create the local_db file, I
   deployed it to the google cloud it worked aswell.
 
   The problem is in development mode and the exception is thrown on the
 line
   entityTransaction.beging().
 
   When I choose *Run GWT Dev Mode on Google App Engine *(on Netbeans)
 (Im
   also using gwt as a framework), it tells me:
 
   Please set the AppEngine Agent environment variable. Add
  
 appengine.agent={path-to-appengine-installation}/lib/agent/appengine-agent.jar
   to the file:
 {path-to-this-project}/nbproject/private/private.properties
 
   Wich I did manually (opened the properties file and wrote the path of
 the
   appengine-agent jar). But it keeps erasing itself. How should I
 configure
   the appengine-agent, maybe thats the problem.
 
   Thank you in advanced.
 
   Kido.
 
   On 14 December 2010 05:35, Didier Durand durand.did...@gmail.com
 wrote:
 
Hi,
 
Do you get thi...
   --
   Cesar Ruiz.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine f...
 
--
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
  --
  My Blog:http://blog.csdn.net/DL88250
  
  Open Source, Open Mind, Open Sight, Open Future!

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Cesar Ruiz.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.