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

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

2012-02-14 Thread lisandrodc
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

[appengine-java] GAE with cloud SQL and hibernate

2012-02-11 Thread lisandrodc
Hi! I have a problem with AppEngine SDK 1.5.1. On having to persist a simple class, the error is: Caused by: java.lang.VerifyError: class com.google.protos.cloud.sql.Client$SqlException overrides final method getUnknownFields.()Lcom/google/appengine/repackaged/com/google/ protobuf/UnknownFieldSet;

[appengine-java] GAE, hibernate and MySQL

2012-02-11 Thread lisandrodc
Hi! I have a problem using Hibernate with MySQL. ON having wanted to persist the error is: Caused by: java.lang.ExceptionInInitializerError at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java: 282) ... ... Caused by: java.security.AccessControlException:

[appengine-java] Example simple application Hibernate with Cloud SQL

2012-02-11 Thread lisandrodc
Does someone know an example of a simple 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

[appengine-java] Re: Error javax.persistence.PersistenceException: Illegal argument

2011-03-04 Thread lisandrodc
-persistence.blogspot.com/ You have there the needed examples to solve your problem regards didier On Feb 27, 2:53 pm, lisandrodc lisandr...@gmail.com wrote: Thanks Didier, but @Parent It is not an annotation of JPA... link:http://www.datanucleus.org/products/accessplatform_1_1/jpa/annotation

[appengine-java] Re: Collection object not being updated

2011-03-04 Thread lisandrodc
Hi Cosmin! I have decided to use JPA due to the fact that with JDO I met several bugs associated with GAE and JPA I had fewer problems, beyond the restrictions that there imposes GAE of the correct use of the oriented object programming . Because of it I recommend to you to use for GAE, JPA...

[appengine-java] Re: Error javax.persistence.PersistenceException: Illegal argument

2011-02-27 Thread lisandrodc
://code.google.com/appengine/docs/java/datastore/transactions.html regards didier On Feb 26, 8:49 pm, lisandrodc lisandr...@gmail.com wrote: Hi ! I have an error at update an object: public void agregarGrupoConUsuario(Usuario usuario,Long idGrupo) {                 EntityTransaction et

[appengine-java] Error javax.persistence.PersistenceException: Illegal argument

2011-02-26 Thread lisandrodc
Hi ! I have an error at update an object: public void agregarGrupoConUsuario(Usuario usuario,Long idGrupo) { EntityTransaction et= em.getTransaction(); try { et.begin(); ControladorGrupoTorneo cGT = new

[appengine-java] Migration to JPA - continues the problem

2011-01-06 Thread lisandrodc
I have migrated JDO to JPA (Due to the problem of persistence), but it never updates the object Torneo, when I add an element to the collection. The code: public void agregarEquipoConTorneo(Torneo unTorneo, Equipo unEquipo) { EntityTransaction utx = em.getTransaction();

[appengine-java] Error in JDO with GAE

2011-01-05 Thread lisandrodc
Hi! I have an error with JDO and GAE Transaction tx = pm.currentTransaction(); try { tx.begin(); unTorneo.agregarEquipo(unEquipo); pm.makePersistentAll(unTorneo);

[appengine-java] Error in JDO with GAE

2011-01-05 Thread lisandrodc
Hi! I have an error with JDO and GAE Transaction tx = pm.currentTransaction(); try { tx.begin(); unTorneo.agregarEquipo(unEquipo); pm.makePersistentAll(unTorneo); pm.refresh(unTorneo);

[appengine-java] Re: Update an Existing object in the datastore - Problem

2011-01-04 Thread lisandrodc
Hi! Torneo dbTorneo = pm.makePersistent(unTorneo); dbTorneo.agregarEquipo(unEquipo); Following this step one does not add in the base an object unEquipo I had to add immediately afterwards to these lines immediately: pm.makePersistentAll(dbTorneo) This way if persite the objects of the

[appengine-java] Re: Update an Existing object in the datastore - Problem

2011-01-04 Thread lisandrodc
model.Torneo.equiposTorneo has been specified to contain the element model.equ...@1292d12 unembedded yet this is already identified as being stored embedded in a different field. This is invalid. You cant store the same object embedded and unembedded! Help me? Thanks! On Jan 4, 9:30 am, lisandrodc lisandr

[appengine-java] Update an Existing object in the datastore - Problem

2011-01-03 Thread lisandrodc
Hi! I have a problem with the persistence of an existing object Torneo (with a empty collection of objects Equipo). When I add elements to the collection and want to persist, sometimes persist and sometimes not persist in the datastore(Restarting the server of the application). The code of

[appengine-java] Re: Update an Existing object in the datastore - Problem

2011-01-03 Thread lisandrodc
Updating an Object inhttp://code.google.com/appengine/docs/java/datastore/creatinggettinga... If so, then you should re-attach it prior to updating it.http://www.jpox.org/docs/1_2/jdo/attach_detach.html Hope this helps. --Andy On Mon, Jan 3, 2011 at 3:47 AM, lisandrodc lisandr...@gmail.com

[appengine-java] Re: Update an Existing object in the datastore - Problem

2011-01-03 Thread lisandrodc
, lisandrodc lisandr...@gmail.com wrote: Hi Stevko! The class Torneo, it's  definite: @PersistenceCapable(identityType=IdentityType.APPLICATION,detachable=true ) public class Torneo implements Serializable {        /*         * @author Lisandro della Croce

[appengine-java] Update an Existing object in the datastore - Problem

2010-12-29 Thread lisandrodc
Hi! I have a problem with the persistence of an existing object Torneo (with a empty collection of objects Equipo). When I add elements to the collection and want to persist, sometimes persist and sometimes not persist in the datastore(Restarting the server of the application). The code of

[appengine-java] Problem Update an existing object

2010-12-27 Thread lisandrodc
Hi! I have a problem with the persistence of an existing object Torneo (with a empty collection of objects Equipo). When I add elements to the collection and want to persist, sometimes persist and sometimes not persist in the datastore(Restarting the server of the application). The code of

[appengine-java] Problem with persistence

2010-12-25 Thread lisandrodc
Hi ! I have a problem with persist a class. It is strange... The problem is that sometimes, persist and sometimes not persist the class Equipo . I have a persist class Torneo that has to many class Equipo, and when persist Equipo sometimes persist in the datastore and sometimes not persist. I have

[appengine-java] Re: Persist child - Problem

2010-12-23 Thread lisandrodc
Hi! The parent class Partido has the annotation: @Persistent( defaultFetchGroup = true) private ListEquipo equiposPartido; Regards! Lisandro On Dec 21, 6:50 pm, andrew aute...@gmail.com wrote: can you show the parent class, with the field for for the Equipo child? It will no doubt have

[appengine-java] Persist a child object of an existing Parent class

2010-12-23 Thread lisandrodc
Hi! I have a problem when add a class Equipo(child) one Torneo(parent existing class). The code: Transaction tx = pm.currentTransaction(); try { tx.begin(); unTorneo.agregarEquipo(unEquipo);

[appengine-java] Re: Persist child - Problem

2010-12-20 Thread lisandrodc
Thanks andrew! My class Equipo has @persistence capable and and serializable... The code: import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import

[appengine-java] Re: JDO - Add a child - Error

2010-12-20 Thread lisandrodc
Hi! I have a problem when add a class Equipo(child) one Torneo(parent). The code: Transaction tx = pm.currentTransaction();                 try {                         tx.begin();                         unTorneo.agregarEquipo(unEquipo);                        

[appengine-java] JDO - Add a child - Error

2010-12-19 Thread lisandrodc
Hi! I have a problem when add a class Equipo(child) one Torneo(parent). The code: Transaction tx = pm.currentTransaction(); try { tx.begin(); unTorneo.agregarEquipo(unEquipo); //pm.makePersistent(unEquipo);

[appengine-java] Persist child - Problem

2010-12-18 Thread lisandrodc
Hi ! I have a problem when I persist and add a child (class Equipo) of an existent class( This class father already persisted, class Fecha). The child class is not persisted and the error is: Primary key for object of type Equipo is null. Caused by: java.lang.IllegalStateException: Primary

[appengine-java] Cloud2db support hibernate?

2010-12-14 Thread lisandrodc
Hi! Cloud2db support hibernate for GAE? http://cloud2db.appspot.com/website/download.htmland Registrationhttp://cloud2db.appspot.com/website/registration.html Has someone a project GAE with Cloud2b of example? Regards! Lisandro -- You received this message because you are subscribed to the

[appengine-java] Cloud2db and hibernate

2010-11-30 Thread lisandrodc
Hi! Cloud2db http://www.cloud2db.com/ is pleased to announce the availability of Hibernate framework on Google App Engine. Has someone a concrete example that works with GAE(with hibernate)? Regards Lisandro -- You received this message because you are subscribed to the Google Groups Google App

[appengine-java] Problem with persistence

2010-10-29 Thread lisandrodc
Hi ! I have a problem with persist a class. The problem is that sometimes, persist and sometimes not persist the class Equipo . I have a persist class Torneo that has to many class Equipo, and when persist Equipo sometimes persist in the datastore and sometimes not persist. I have to try

[appengine-java] Persist a child class

2010-10-09 Thread lisandrodc
Hi! I have a problem with persist a child class, using inheritance. When I call the method makePersistent, in the datastore, the object doesn't save. It does not throw any exception. The code at makePersistent and the classes are: public void crearRegFechaUsuario(Usuario usu,RegFechaUsuario

[appengine-java] Problem with Persistent class

2010-10-03 Thread lisandrodc
Hi ! I have a problem when persist a class. The exception is: Object with id is handled by another ObjectManager org.datanucleus.exceptions.NucleusUserException: Objeto con id es manejado por otro ObjectManager at

[appengine-java] Problem with persist a child class

2010-09-29 Thread lisandrodc
Hi andy! I have tried delete my local_db and the problem persist. The exception is in the next code, in the call of the build method RegFechaUsuario: ControladorFecha cF = new ControladorFecha(); System.out.println(nombre + nuevaFecha.getNombre());

[appengine-java] Re: Problem with persist a child class

2010-09-25 Thread lisandrodc
? On Sun, Sep 19, 2010 at 7:22 AM, lisandrodc lisandr...@gmail.com wrote: Hi! I have a problem with persist a child class. The classes are: The parent class: @PersistenceCapable @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) public  abstract class Fecha

[appengine-java] Re: Problem with persist a child class

2010-09-25 Thread lisandrodc
is converted, not cast. If the numeric property value is larger than the field type, the conversion overflows without throwing an exception. --Andy On Sat, Sep 25, 2010 at 1:40 PM, lisandrodc lisandr...@gmail.com wrote: Hi! Andy I can't change the type of a member from String to Long

[appengine-java] Re: Problem with persist a child class

2010-09-24 Thread lisandrodc
is that you already have a @PrimaryKey in Fecha so you don't need it in RegFechaUsuario. Cheers, Fernando On Thu, Sep 23, 2010 at 8:30 PM, lisandrodc lisandr...@gmail.com wrote: Hi!Cyrille I add a primary key in my child class: @PersistenceCapable(identityType = IdentityType.APPLICATION

[appengine-java] Re: Problem with persist a child class

2010-09-23 Thread lisandrodc
$BatchManagerWrapper.access$200(DatastoreJDO On 23 sep, 05:25, Cyrille Vincey crll...@gmail.com wrote: There is no primary key in your child class. Add one. On 23/09/10 04:40, lisandrodc lisandr...@gmail.com wrote: Hi ! I have a problem when persist a chid class. The parent class

[appengine-java] Re: Problem with persist a child class

2010-09-22 Thread lisandrodc
Hi ! I have a problem when persist a chid class. The parent class: @PersistenceCapable @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) public abstract class Fecha { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id;

[appengine-java] Problem with persist a child class

2010-09-22 Thread lisandrodc
Hi ! I have a problem when persist a chid class. The parent class: @PersistenceCapable @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) public abstract class Fecha { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id;

[appengine-java] Problem with persist a child class

2010-09-19 Thread lisandrodc
Hi! I have a problem with persist a child class. The classes are: The parent class: @PersistenceCapable @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) public abstract class Fecha { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)

[appengine-java] Re: Problem with persist a child class

2010-09-19 Thread lisandrodc
sep, 12:19, dushyant bing dush...@gmail.com wrote: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String use Long.parseLong(String) to parse Sent from my iPad On Sep 19, 2010, at 7:52 PM, lisandrodc lisandr...@gmail.com wrote: Hi! I have a problem with persist

[appengine-java] Re: Problem with persist a child class

2010-09-19 Thread lisandrodc
/java/datastore/datac html cyrille On 19/09/10 18:55, lisandrodc lisandr...@gmail.com wrote: Thanks dushyant , but the exception is of an error of JDO,datanucleus (seemingly). That it has to see with the keys it seems to me, is not the problem that I from my code can use

[appengine-java] Re: Problem with inheritance and JDO

2010-09-10 Thread lisandrodc
recommend following the same strategy we recommend for implementing unowned relationships: store a Key reference. Bye. On 08/09/10 02:14, lisandrodc lisandr...@gmail.com wrote: Thanks Cyrille, but.. Might someone confirm to me authentically that really inheritance is not supported

[appengine-java] Re: Problem with inheritance and JDO

2010-09-07 Thread lisandrodc
crll...@gmail.com wrote: I have read somewhere in the appengine doc that class inheritance is not really supported by JDO yet... On 07/09/10 00:39, lisandrodc lisandr...@gmail.com wrote: Hi all,   I've used hibernate for a while, and I'm having a bit of trouble switching to JDO.  I have

[appengine-java] Problem with inheritance and JDO

2010-09-06 Thread lisandrodc
Hi all, I've used hibernate for a while, and I'm having a bit of trouble switching to JDO. I have several entities that all entities will share. Rather than a parent table, I'd prefer these columns be embedded directly in each entity. As such, I've defined my abstract entity and child entity

[appengine-java] Re: Inheritance

2010-09-05 Thread lisandrodc
@http://code.google.com/appengine/docs/java/datastore/usingjdo.html#Se... regards didier On Sep 4, 3:11 pm, lisandrodc lisandr...@gmail.com wrote: BD really is Data Base ( excuses, I said it to you in Spanish...)... I am using JDO but he says a mistake to me saying that I have to form

[appengine-java] Re: Inheritance

2010-09-04 Thread lisandrodc
? On Sep 4, 12:01 am, lisandrodc lisandr...@gmail.com wrote: Thanks, David. If you say that inheritance works to persist in the BD. Will you have some example in code? Regards Lisandro On 3 sep, 16:35, David Sowerby david.sowe...@virgin.net wrote: I am sorry I cannot read Spanish

[appengine-java] Re: Inheritance

2010-09-03 Thread lisandrodc
Thanks, David. If you say that inheritance works to persist in the BD. Will you have some example in code? Regards Lisandro On 3 sep, 16:35, David Sowerby david.sowe...@virgin.net wrote: I am sorry I cannot read Spanish, but inheritance definitely works. On Sep 3, 12:10 am, lisandrodc lisandr

[appengine-java] Inheritance

2010-09-02 Thread lisandrodc
Hi! Someone has some code working correctly that uses inheritance? Since in the link: http://code.google.com/intl/es/appengine/docs/java/datastore/relationships.html#Owned_One_to_Many_Relationships He does not say anything in the matter... Regards Lisandro -- You received this message because

[appengine-java] The correct use of inheritance in Google Apps?

2010-08-29 Thread lisandrodc
Hi! I have a problem with persist a child class, the error is: We have not found the Meta-Data/annotations for the class model.RegFechaUsuario. Please verify that it has put it in a file correct and valid XML The configuration in the link :

[appengine-java] Problem with persistence

2010-08-28 Thread lisandrodc
Hi! I have a problem with persist the class Fecha. The class Fecha: The following classes are: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Fecha implements Serializable { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)

[appengine-java] polymorphism, inheritance really not supporting?

2010-07-24 Thread lisandrodc
Hi! I have a problem when I attempt persist an object,calling the next code: par1 = new Partido(ss, new Empate(), eq1b, eq2b, fecha, hora); //The class Empate extends of class Resultado, and the error says: Received a child of type model.Empate for a

[appengine-java] Problem of persistence in JDO

2010-07-22 Thread lisandrodc
Hi! I have a problem with active transaction.When I try to guard in the datastore, says: Object with id com.google.appengine.api.datastore.Key:Torneo(1)/ Equipo(3) is managed by a different Object Manager. Disegn: A Torneo has relation one to many Equipo A Fecha has relation one to many Partido

[appengine-java] Re: Active transactions

2010-07-21 Thread lisandrodc
();                 }         } On Jul 18, 11:01 pm, lisandrodc lisandr...@gmail.com wrote: Hi! I have a problem with active transaction.When I try to guard in the datastore, says:  La transaccion esta activo todavia. Debe cerrar las transacciones usando los metodos commit() o rollback(). As closure all the transactions

[appengine-java] Persistence manager for all system

2010-07-19 Thread lisandrodc
Hi! I have a doubt of since administering a Persistence manager for an application(for example web). When close the persistence manager? When commit the transaction? The pattern singleton the example? Because if I continue the help of google, the pattern, close a persitence manager, for example:

[appengine-java] Active transactions

2010-07-18 Thread lisandrodc
Hi! I have a problem with active transaction.When I try to guard in the datastore, says: La transaccion esta activo todavia. Debe cerrar las transacciones usando los metodos commit() o rollback(). As closure all the transactions? The method is: PersistenceManager pm2 =

[appengine-java] Problem with datastore

2010-07-17 Thread lisandrodc
I'm using the Google AppEngine, with Java. When I use some datastore features, I'm getting an error message: Objeto con id model.fe...@cf17c3 es manejado por otro ObjectManager. The code: public void crearPartido(String nombre1, String nombre2,Date fecha,Fecha fechaAgreg) {

[appengine-java] polymorphism in relationships is not yet supported?

2010-07-17 Thread lisandrodc
I have a problem when assign an object using polymorphism. Received a child of type model.Empate for a field of type model.Resultado. Unfortunately polymorphism in relationships is not yet supported. par1=new Partido(23, new Empate(), eq1,eq2, fecha); The constructor: public Partido(Long

[appengine-java] Re: Problem persist JDO- one to many

2010-07-12 Thread lisandrodc
Hi! Prashant/Hariharan. The problem was that I don´t have the annotation in the collection: @Persistent(mappedBy = torneo, defaultFetchGroup = true) private ListEquipo equiposTorneo; The defaultFetchGroup = true is critical and in the documentation of google it is not... I did

[appengine-java] Re: Problem persist JDO- one to many

2010-07-11 Thread lisandrodc
Thanks Prashant, but not understand...That would be to do detach b including all of its collections of child entities?Example of code? The objects Equipo is created in my database, but when get for Torneo b = pm.getObjectById(Torneo.class, idTorneo); the b.getEquiposTorneo that is a collection is

[appengine-java] The important annotation of one to many

2010-07-11 Thread lisandrodc
Hi! I have an important javadoc annotations for one-to many relations. In the class that contains the collection: @Persistent(mappedBy = torneo, defaultFetchGroup = true) private ListEquipo equiposTorneo; If we do not place defaultFetchGroup = true, when we want to recover the object that

[appengine-java] Re: Local Persistance of Data

2010-06-26 Thread lisandrodc
: The server is running at http://localhost:/ On 25 jun, 18:47, lisandrodc lisandr...@gmail.com wrote: Thanks Prateek! The struts version that tape-worm was old  (2.1.2). The problem was solved by the version 2.1.8!!! Regards! Lisandro On 25 jun, 03:07, Prateek bittooagar...@gmail.com wrote

[appengine-java] Re: Local Persistance of Data

2010-06-25 Thread lisandrodc
/login I guesshttp://localhost:/_ah/adminshould work fine. Can you even validate the struts2 jar version. Is it 2.1.8.1 Regards Prateek On Jun 25, 3:02 am, lisandrodc lisandr...@gmail.com wrote: Hi Prateek. First thanks, but I don´t solve my local data problem. Now, my struts.xml

[appengine-java] Re: Local Persistance of Data

2010-06-24 Thread lisandrodc
the page: Struts Problem Report Struts has detected an unhandled exception: # Messages: There is no Action mapped for action name login. On 24 jun, 15:56, Prateek bittooagar...@gmail.com wrote: Hello  @ IAN @ JOHN @ lisandrodc I just try the changes. We need to work out a few more changes

[appengine-java] Almacén de datos AppEngine

2010-06-23 Thread lisandrodc
Hola, quería saber como usar de manera local, sin subir la aplicación a la web el tema del almacén de datos local_db.bin, si puedo visualizar la base de datos de manera local en mi equipo de alguna manera. Gracias Lisandro -- You received this message because you are subscribed to the Google

[appengine-java] Re: Local Persistance of Data

2010-06-23 Thread lisandrodc
Hi! I have a same problem that Prateek. I use Struts 2. I try to access the development web server console web application. http://localhost:8080, run, but at run http://localhost:8080/_ah/admin or: http://localhost:8080/_ah/login But for both, says the page: Struts Problem Report Struts has

[appengine-java] Problem JDO

2010-06-22 Thread lisandrodc
Hi! I have a problem with JDO at persist a class: 1. La clase model.Empleado no es s epuede hacer persistente. Esto significa que no esta analizada, o que la version analizada no esta en el CLASSPATH (o antes se encuentra una version que no esta analizada), o que el Meta-Data/Annotaciones de

[appengine-java] BD in Appgoogle

2010-06-22 Thread lisandrodc
I have a doubt for use the bd. Some way exists for view the local_db(without dates binaries). Regards Lisandro -- 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