[appengine-java] Add payment - Wallet?

2012-02-14 Thread ChrisX
Hi there,

I have a site where I need payment for extract of date - anyone know how to 
do this?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/8jCLKavKCjEJ.
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.



[appengine-java] GAE + Cloud SQL + Hibernate

2012-02-14 Thread lisandrodc
Does someone know a simple example application GAE with
Hibernate and Cloud SQL?
Supposedly Cloud SQL support.
(Forming:hibernate.cfg.xml, working with MySQL locally or Cloud SQL
in
Server)
The link:
https://developers.google.com/cloud-sql/
It does not mention anything with regard to Hibernate.
Thanks and regards

-- 
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] GAE + Cloud SQL + Hibernate

2012-02-14 Thread Paul Ford
Hey Lisa as far as I can tell Hibernate is not supported by GAE. This is
documented on the GAE Java Whitelist.

Furthermore, JPA and JDO are supported so this should provide all the ORM
you need.

regards

paul

On Tue, Feb 14, 2012 at 5:33 AM, lisandrodc lisandr...@gmail.com wrote:

 Does someone know a simple example application GAE with
 Hibernate and Cloud SQL?
 Supposedly Cloud SQL support.
 (Forming:hibernate.cfg.xml, working with MySQL locally or Cloud SQL
 in
 Server)
 The link:
 https://developers.google.com/cloud-sql/
 It does not mention anything with regard to Hibernate.
 Thanks and regards

 --
 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.




-- 
Regards

Paul

*Paul W. Ford │ Principal*
Maven Wave Partners LLC
GTalk  +1.312.884.1051  M: +1.312.953.1664
paul.f...@mavenwave.com

Please check out our Fusion
Bloghttp://www.mavenwave.com/news-and-views-mavenwave-blog/ for
more insights

-- 
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] GAE + Cloud SQL + Hibernate

2012-02-14 Thread Paul Ford
Ikai,

This is great so Hibernate on GAE works for Cloud SQL but not Datastore. I
understand.

Thanks

paul

On Tue, Feb 14, 2012 at 11:57 AM, Ikai Lan (Google) ika...@google.comwrote:

 Hibernate works. I've gotten Cloud SQL to work with Hibernate ... the
 article has just been pending for some time now. You just want to turn off
 connection pooling and use AppEngineDriver where a SQL Driver is expected.
 Example configuration XML:

 *?xml version='1.0' encoding='utf-8'?
 !DOCTYPE hibernate-configuration PUBLIC
-//Hibernate/Hibernate Configuration DTD 3.0//EN
 http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd;

 hibernate-configuration

session-factory

!-- Database connection settings --
 property
 name=connection.driver_classcom.google.appengine.api.rdbms.AppEngineDriver/property
 property name=connection.urljdbc:google:rdbms://
 YOUR_CLOUD_SQL_INSTANCE_ID/guestbook/property

!-- JDBC connection pool (use the built-in) --
 property name=connection.pool_size1/property

!-- SQL dialect --
 property
 name=dialectorg.hibernate.dialect.MySQLDialect/property

!-- Disable the second-level cache  --
 property
 name=cache.provider_classorg.hibernate.cache.NoCacheProvider/property

!-- Echo all executed SQL to stdout --
 property name=show_sqltrue/property

 !-- Drop and re-create the database schema on startup --
property name=hbm2ddl.autoupdate/property

mapping resource=BLAH/

/session-factory

 /hibernate-configuration*

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 plus.ikailan.com



 On Tue, Feb 14, 2012 at 9:08 AM, Paul Ford paul.f...@mavenwave.comwrote:

 Hey Lisa as far as I can tell Hibernate is not supported by GAE. This is
 documented on the GAE Java Whitelist.

 Furthermore, JPA and JDO are supported so this should provide all the ORM
 you need.

 regards

 paul


 On Tue, Feb 14, 2012 at 5:33 AM, lisandrodc lisandr...@gmail.com wrote:

 Does someone know a simple example application GAE with
 Hibernate and Cloud SQL?
 Supposedly Cloud SQL support.
 (Forming:hibernate.cfg.xml, working with MySQL locally or Cloud SQL
 in
 Server)
 The link:
 https://developers.google.com/cloud-sql/
 It does not mention anything with regard to Hibernate.
 Thanks and regards

 --
 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.




 --
 Regards

 Paul

 *Paul W. Ford │ Principal*
 Maven Wave Partners LLC
 GTalk  +1.312.884.1051  M: +1.312.953.1664
 paul.f...@mavenwave.com

 Please check out our Fusion 
 Bloghttp://www.mavenwave.com/news-and-views-mavenwave-blog/ for
 more insights

  --
 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.


  --
 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.




-- 
Regards

Paul

*Paul W. Ford │ Principal*
Maven Wave Partners LLC
GTalk  +1.312.884.1051  M: +1.312.953.1664
paul.f...@mavenwave.com

Please check out our Fusion
Bloghttp://www.mavenwave.com/news-and-views-mavenwave-blog/ for
more insights

-- 
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] GAE + Cloud SQL + Hibernate

2012-02-14 Thread Ikai Lan (Google)
That's right. When working with the datastore, it's probably best to
understand it first by learning the low-level API. There's a trap when you
start trying to think of the datastore relationally - do not do this.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com



On Tue, Feb 14, 2012 at 10:12 AM, Paul Ford paul.f...@mavenwave.com wrote:

 Ikai,

 This is great so Hibernate on GAE works for Cloud SQL but not Datastore. I
 understand.

 Thanks

 paul

 On Tue, Feb 14, 2012 at 11:57 AM, Ikai Lan (Google) ika...@google.comwrote:

 Hibernate works. I've gotten Cloud SQL to work with Hibernate ... the
 article has just been pending for some time now. You just want to turn off
 connection pooling and use AppEngineDriver where a SQL Driver is expected.
 Example configuration XML:

 *?xml version='1.0' encoding='utf-8'?
 !DOCTYPE hibernate-configuration PUBLIC
-//Hibernate/Hibernate Configuration DTD 3.0//EN
 http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd;

 hibernate-configuration

session-factory

!-- Database connection settings --
 property
 name=connection.driver_classcom.google.appengine.api.rdbms.AppEngineDriver/property
 property name=connection.urljdbc:google:rdbms://
 YOUR_CLOUD_SQL_INSTANCE_ID/guestbook/property

!-- JDBC connection pool (use the built-in) --
 property name=connection.pool_size1/property

!-- SQL dialect --
 property
 name=dialectorg.hibernate.dialect.MySQLDialect/property

!-- Disable the second-level cache  --
 property
 name=cache.provider_classorg.hibernate.cache.NoCacheProvider/property

!-- Echo all executed SQL to stdout --
 property name=show_sqltrue/property

 !-- Drop and re-create the database schema on startup --
property name=hbm2ddl.autoupdate/property

mapping resource=BLAH/

/session-factory

 /hibernate-configuration*

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 plus.ikailan.com



 On Tue, Feb 14, 2012 at 9:08 AM, Paul Ford paul.f...@mavenwave.comwrote:

 Hey Lisa as far as I can tell Hibernate is not supported by GAE. This is
 documented on the GAE Java Whitelist.

 Furthermore, JPA and JDO are supported so this should provide all the
 ORM you need.

 regards

 paul


 On Tue, Feb 14, 2012 at 5:33 AM, lisandrodc lisandr...@gmail.comwrote:

 Does someone know a simple example application GAE with
 Hibernate and Cloud SQL?
 Supposedly Cloud SQL support.
 (Forming:hibernate.cfg.xml, working with MySQL locally or Cloud SQL
 in
 Server)
 The link:
 https://developers.google.com/cloud-sql/
 It does not mention anything with regard to Hibernate.
 Thanks and regards

 --
 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.




 --
 Regards

 Paul

 *Paul W. Ford │ Principal*
 Maven Wave Partners LLC
 GTalk  +1.312.884.1051  M: +1.312.953.1664
 paul.f...@mavenwave.com

 Please check out our Fusion 
 Bloghttp://www.mavenwave.com/news-and-views-mavenwave-blog/ for
 more insights

  --
 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.


  --
 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.




 --
 Regards

 Paul

 *Paul W. Ford │ Principal*
 Maven Wave Partners LLC
 GTalk  +1.312.884.1051  M: +1.312.953.1664
 paul.f...@mavenwave.com

 Please check out our Fusion 
 Bloghttp://www.mavenwave.com/news-and-views-mavenwave-blog/ for
 more insights

  --
 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.


-- 
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 

[appengine-java] GQL return no result for query that use User as a condition.

2012-02-14 Thread Azlan
Hi All,

I tried to run the GQL query in the Data Viewer (appengine.google.com) but 
it returns no result. Please see the following GQL and the JDO class below. 
Any hint what I did wrong?

For example,

SELECT * FROM Plan WHERE USER='emailaddr...@gmail.com'

Where Plan is a JDO class, like the following:

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.users.User;
public class Plan {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;

@Persistent
private User user;

// Setters and getters
}

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/ikiLe6tJCjAJ.
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.



[appengine-java] Re: How to display user name beside email address!

2012-02-14 Thread RAJ
If someone has got solution, please share!!!

Thanks,
Raj

On Feb 1, 9:45 pm, RAJ er.rajes...@gmail.com wrote:
 Hi All,

 I am trying to figure out some way to display user name beside showing
 email address on my home page!

 I am using below code as suggested on app engine docs:

 Hello,  + user.getNickname()

 But, above code always prints email address beside printing actual
 nick name of user. (I want to print what we usually see when we login
 to gmail on top right corner!)

 I had a look at api documentation below (python and java)

 JAVA:

 http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...

 (Return this user's nickname. The nickname will be a unique, human
 readable identifier for this user with respect to this application. It
 will be an email address for some users, but not all.)

 PYTHON:

 http://code.google.com/appengine/docs/python/users/userclass.html

 (For Google Accounts users, the nickname is either the name portion
 of the user's email address if the address is in the same domain as
 the application, or the user's full email address otherwise. For
 OpenID users, the nickname is the OpenID identifier.)

 Both are completely different descriptions.

 1. Assuming, JAVA API documentation is correct::

 I tried with multiple email address (around 10-20) but all of them
 display email addresses not nick name. Does any one have been able to
 see the nick name??

 2. Assuming, Python API documentation is correct::

 How to bring the address is in the same domain as the application??
 What do I have to add in my google app engine to make it work??

 Any suggestions please!!

 Thanks in advance!

 Cheers,
 Raj

-- 
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.



[appengine-java] Re: GAE + Cloud SQL + Hibernate

2012-02-14 Thread lisandrodc
Thanks Ikai!
Has it some simple example with GAE and Cloud SQL?
I did not find in Internet.
Thanks and regards
Lisandro

On 14 feb, 15:15, Ikai Lan (Google) ika...@google.com wrote:
 That's right. When working with the datastore, it's probably best to
 understand it first by learning the low-level API. There's a trap when you
 start trying to think of the datastore relationally - do not do this.

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 plus.ikailan.com







 On Tue, Feb 14, 2012 at 10:12 AM, Paul Ford paul.f...@mavenwave.com wrote:
  Ikai,

  This is great so Hibernate on GAE works for Cloud SQL but not Datastore. I
  understand.

  Thanks

  paul

  On Tue, Feb 14, 2012 at 11:57 AM, Ikai Lan (Google) 
  ika...@google.comwrote:

  Hibernate works. I've gotten Cloud SQL to work with Hibernate ... the
  article has just been pending for some time now. You just want to turn off
  connection pooling and use AppEngineDriver where a SQL Driver is expected.
  Example configuration XML:

  *?xml version='1.0' encoding='utf-8'?
  !DOCTYPE hibernate-configuration PUBLIC
         -//Hibernate/Hibernate Configuration DTD 3.0//EN
          http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd;

  hibernate-configuration

     session-factory

         !-- Database connection settings --
          property
  name=connection.driver_classcom.google.appengine.api.rdbms.AppEngineDriv
   er/property
          property name=connection.urljdbc:google:rdbms://
  YOUR_CLOUD_SQL_INSTANCE_ID/guestbook/property

         !-- JDBC connection pool (use the built-in) --
          property name=connection.pool_size1/property

         !-- SQL dialect --
          property
  name=dialectorg.hibernate.dialect.MySQLDialect/property

         !-- Disable the second-level cache  --
          property
  name=cache.provider_classorg.hibernate.cache.NoCacheProvider/property

         !-- Echo all executed SQL to stdout --
          property name=show_sqltrue/property

          !-- Drop and re-create the database schema on startup --
         property name=hbm2ddl.autoupdate/property

         mapping resource=BLAH/

     /session-factory

  /hibernate-configuration*

  --
  Ikai Lan
  Developer Programs Engineer, Google App Engine
  plus.ikailan.com

  On Tue, Feb 14, 2012 at 9:08 AM, Paul Ford paul.f...@mavenwave.comwrote:

  Hey Lisa as far as I can tell Hibernate is not supported by GAE. This is
  documented on the GAE Java Whitelist.

  Furthermore, JPA and JDO are supported so this should provide all the
  ORM you need.

  regards

  paul

  On Tue, Feb 14, 2012 at 5:33 AM, lisandrodc lisandr...@gmail.comwrote:

  Does someone know a simple example application GAE with
  Hibernate and Cloud SQL?
  Supposedly Cloud SQL support.
  (Forming:hibernate.cfg.xml, working with MySQL locally or Cloud SQL
  in
  Server)
  The link:
 https://developers.google.com/cloud-sql/
  It does not mention anything with regard to Hibernate.
  Thanks and regards

  --
  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.

  --
  Regards

  Paul

  *Paul W. Ford │ Principal*
  Maven Wave Partners LLC
  GTalk  +1.312.884.1051  M: +1.312.953.1664
  paul.f...@mavenwave.com

  Please check out our Fusion 
  Bloghttp://www.mavenwave.com/news-and-views-mavenwave-blog/ for
  more insights

   --
  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.

   --
  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.

  --
  Regards

  Paul

  *Paul W. Ford │ Principal*
  Maven Wave Partners LLC
  GTalk  +1.312.884.1051  M: +1.312.953.1664
  paul.f...@mavenwave.com

  Please check out our Fusion 
  Bloghttp://www.mavenwave.com/news-and-views-mavenwave-blog/ for
  more insights

   --
  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