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.
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
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;
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:
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
-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
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...
://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
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
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();
Hi! I have an error with JDO and GAE
Transaction tx = pm.currentTransaction();
try {
tx.begin();
unTorneo.agregarEquipo(unEquipo);
pm.makePersistentAll(unTorneo);
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);
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
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
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
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
, 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
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
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
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
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
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);
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
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);
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);
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
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
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
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
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
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
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());
?
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
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
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
$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
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;
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;
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)
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
/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
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
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
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
@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
?
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
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
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
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 :
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)
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
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
();
}
}
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
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:
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 =
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) {
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
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
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
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
: 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
/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
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
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
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
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
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
67 matches
Mail list logo