[appengine-java] Re: Help, error from example - java.lang.NoClassDefFoundError: Could not initialize class guestbook.PMF

2012-02-20 Thread datanucleus
So fix your file permissions. The following message cannot be more clear access denied ("java.io.FilePermission" "C:\" "read") Why "C:\" is in the CLASSPATH only you would know -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To p

[appengine-java] Re: Help, error from example - java.lang.NoClassDefFoundError: Could not initialize class guestbook.PMF

2012-02-20 Thread datanucleus
If you have a NoClassDefFoundError then you need to mention what is the class ... likely the cause of that error. -- 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@googlegrou

[appengine-java] Re: "Unable to restore the previous TimeZone" - cannot run my GAE app localy

2012-02-20 Thread datanucleus
http://code.google.com/p/googleappengine/issues/detail?id=6928 -- 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

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

2012-02-16 Thread datanucleus
> ConnectionPool : do any of C3P0, DBCP, or BoneCP work with CloudSQL ? > If so then you can use DataNucleus support for those (look at the DN > docs). Apparently DBCP "works" http://groups.google.com/group/google-cloud-sql-discuss/browse_thread/thread/a469cd08c2a2ac43 --

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

2012-02-15 Thread datanucleus
> I am using Gwt + gae + cloud sql + data nucleus, can anybody shed some > light on how to do connection pool and how to monitor in-flight stats. ConnectionPool : do any of C3P0, DBCP, or BoneCP work with CloudSQL ? If so then you can use DataNucleus support for those (look at the D

[appengine-java] Re: still a mess with datanucleus instead of hibernate/jpa

2012-02-09 Thread datanucleus
Actually presenting a complete "persistence.xml" and an accurate description of the problem would be a prerequisite to people understanding what you're going on about. Just an idea ;-) -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group

[appengine-java] Re: Developing a component to gae to provide for many to many relationships between objects

2012-02-06 Thread datanucleus
Unowned relationships are supported on GAE, using v2 of their DataNucleus plugin, as are M-N relations -- 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@googlegrou

[appengine-java] Re: Unowned relations JPA examples for datanucleus plugin v2

2012-02-05 Thread datanucleus
> A little more info on my example too. I'll refer you to my previous comment then. -- 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 t

[appengine-java] Re: makePersistent failing every second time since server restart

2012-02-01 Thread datanucleus
ure that it ought to be perfectly simple to generate a testcase something akin to the format used by DataNucleus http://www.datanucleus.org/project/problem_jdo_testcase.html if the issue is as clear as you say in terms of reproducing it. And then you can raise an issue in Googles issue track

[appengine-java] Re: iterating over Extent throwing NullPointerException on extent.closeAll()

2012-01-31 Thread datanucleus
Probably a bug, but you could just use the more normal Query q = pm.newQuery(MyClass.class); List results = (List)q.execute(); which is widely tested in Googles tests. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this

[appengine-java] Re: upgrading to datanucleus-appengine 2.0

2012-01-30 Thread datanucleus
> Also, I did not have a persistence.xml file in eclipse so I copied the one > provided on the wiki's link and placed > it alongside jdoconfig.xml in hope that this would be enough. And why should you have one? You use one or the other. As per the JDO spec. > Why is > org.datanucleus.store.appen

[appengine-java] Re: Unowned relations JPA examples for datanucleus plugin v2

2012-01-26 Thread datanucleus
Who can say; you need to define what you're doing. So look at http://code.google.com/p/datanucleus-appengine/source/browse/trunk/tests/com/google/appengine/datanucleus/jpa/JPAManyToManyTest.java and write a test, using that same sample, with the operations you're performing. -- Yo

[appengine-java] Re: Unowned relations JPA examples for datanucleus plugin v2

2012-01-22 Thread datanucleus
To make a relation unowned (in v2) you mark (both sides if bidirectional) as @Unowned Unowned M-N work fine with SVN trunk code, though there may have been some things incomplete in RC versions -- You received this message because you are subscribed to the Google Groups "Google App Engine for Ja

[appengine-java] Re: Ordered collection

2012-01-17 Thread datanucleus
> Just a last thought: in this way I have to retrieve all the children > each time I want to order the collection .. Am I right? You retrieve the owner object, and it has a List. You play around with the List to your hearts content, and the updates are saved. > I hope it is integrated with the se

[appengine-java] Re: Ordered collection

2012-01-16 Thread datanucleus
How to order it ? you set the items in the list in the order you want them, of course. Manual hackery of properties in the datastore means that you take responsibility for it thereafter - v2 of the plugin (the latest storage version) actually stores the positioning and membership in a property in t

[appengine-java] Re: Learning JDO for AppEngine

2012-01-07 Thread datanucleus
There aren't any books on JDO2+ AFAIK. Best place to learn about it are Apache JDO, who manage the API : http://db.apache.org/jdo/ DataNucleus docs (all pages under "JDO API" menu) : http://www.datanucleus.org/products/accessplatform_3_0/jdo/api.html JDO spec (linked from the a

[appengine-java] Re: JDO second level cache getting in the way...

2012-01-04 Thread datanucleus
@Rick, JDO doesn't encourage you to do anything, nor impose it. Perhaps its just that some will, upon using it, think in a particular way because they used a similar API before, and they're used to their "good old" RDBMS handling things for them so assume the same is true ... and it isn't as you s

[appengine-java] Re: JDO second level cache getting in the way...

2012-01-03 Thread datanucleus
As for the problem of the original poster, evictAll is for the *Level1* cache (which will not be of any use since you aren't using transactions there). Calling addLabels is queued (doesn't go straight to the DB in the version you use there), and you don't then start a transaction. Simple thing to d

[appengine-java] Re: JDO second level cache getting in the way...

2012-01-03 Thread datanucleus
> JDO was designed for relational data models, GAE was designed for the > opposite. Please check your facts, perhaps by consulting people who actually designed the JDO standard, or by actually reading the JDO spec. It was designed to be datastore-agnostic. JPA on the other hand was not, with RDBMS

[appengine-java] Re: An alternative to Objectify?

2011-12-08 Thread datanucleus
> Well, it sounds so. But does (or can/will) Datanucleus support at least > some of the features Jeff has mentioned? Yes, several actually. And nothing is "dog slow", ... though why dogs get such a bad reputation I've no idea; take a greyhound for example ... :-) The questi

[appengine-java] Re: An alternative to Objectify?

2011-12-07 Thread datanucleus
> *Does anybody know whether it's as simple&transparent as with Objectify to > use GAE's caching in JPA2&Datanucleus on GAE?* Assuming you're using v2 of the datanucleus-appengine plugin, just define the persistence property "datanucleus.cache.level2.type

[appengine-java] Re: JDO embedded object not being initialized after JDO query

2011-11-17 Thread datanucleus
> 2), I don't pass objects between PMs. Well I can only comment on your example, which closes the PM after persist (so the object goes to hollow then to transient), and *then* you check on field values. Things will be nulled unless retainValues is set. See http://www.datanucleus.org/products/acces

[appengine-java] Re: JDO embedded object not being initialized after JDO query

2011-11-17 Thread datanucleus
e their field values present (since the object is now in HOLLOW state). A review of the JDO spec and in particular object lifecycle would make sense. Using v2 of the datanucleus-appengine plugin (the only version I have any interest in), such an operation works fine. -- You received this message b

[appengine-java] Re: DataNucleus App Engine Plugin v2.0.0-RC1 available for testing

2011-11-05 Thread datanucleus
Earlier blog post http://datanucleus.blogspot.com/2011/08/gaej-and-datanucleus-v3.html and more recent one http://datanucleus.blogspot.com/2011/11/gaej-and-datanucleus-v3-part-2.html -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java&q

[appengine-java] Re: DataNucleus App Engine Plugin v2.0.0-RC1 available for testing

2011-11-03 Thread datanucleus
> how does the unowned relationships works? Does it enable "lazy loading" the > related part as a separated datastore get? @PersistenceCapable public class A { @Unowned B b; } @PersistenceCapable public class B {...} Persist of an A with related B will persist the A and B (though the Ke

[appengine-java] Re: Does JDO auto remove indexes that now have unindexed properties?

2011-10-28 Thread datanucleus
> I don't know how you would force a write using JDO. JDOHelper.makeDirty(obj, "fieldName); -- 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 unsubscrib

[appengine-java] Re: Object does not persist [JDO, HR]

2011-10-27 Thread datanucleus
Since that version of GAE uses an ancient version of DataNucleus, you could simply put your update code within a transaction. -- 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] Re: Object with id "com.google.appengine.api.datastore.Key:AgentP(9)" is managed by a different Object Manager

2011-09-10 Thread datanucleus
and pm variable is defined where? one per thread? -- 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-ap

[appengine-java] Re: Is there any way to generate excel file in google app engine application?

2011-09-05 Thread datanucleus
Use DataNucleus Excel plugin perhaps, and Apache POI ... assuming GAE restrictions on classes don't prevent it. -- 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] Re: GWT will serialize java.util.Hashet and won't serialize org.datanucleus.sco.backed.HashSet from JDO. Why?

2011-08-24 Thread datanucleus
> Not sure what all the low-level difference between the two is > either One of them returns objects in a "detached" state (i.e representations of persisted objects, with an "identity", but disconnected from the datastore, and if persisted would update the existing object in the datastore) The ot

[appengine-java] Re: gae.parent-pk doesnt work in list query

2011-08-15 Thread datanucleus
> however i have the following issues. > > 1.I am using the query  Select c from ChatUser c where c.key =:keyList > elsewhere and it is working fine. How can it be working? Because Google didn't respect valid JDOQL when they implemented their plugin and allowed nonsense like that query (the syntax

[appengine-java] Re: gae.parent-pk doesnt work in list query

2011-08-12 Thread datanucleus
Invalid JPQL (a Key cannot equal a List). This makes more sense Select c from ChatUser c where c.parentKey IN :parentKey -- 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@goo

[appengine-java] Re: FK Maps not supported error when using HashMaps

2011-07-28 Thread datanucleus
Perhaps you ought to define your persistence code and more of your model classes (and stack trace). When I run something like that **using SVN code of the GAE plugin** all works fine. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group.

[appengine-java] Re: HashMap within an Embedded Class

2011-07-22 Thread datanucleus
oogle.com/p/datanucleus-appengine/issues/list If it exists there, then refer to it so the user knows which one to star -- 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

[appengine-java] Re: jdo update is inserting when I don't want it to

2011-04-29 Thread datanucleus
> A question about the "ancient version of DataNucleus" you mention: > Is there a more up-to-date approach I should be using within GEA? Could you > point me toward the resource for that if any? Nothing you can do (apart from getting the code for the GAE/J DataNucleus plu

[appengine-java] Re: jdo update is inserting when I don't want it to

2011-04-28 Thread datanucleus
d the object is managed, and so any update will go to the DB without any makePersistent call being needed (obviously in the ancient version of DataNucleus you have there it will wait til the next txn before it does (or just put the pm.getObjectById+update in a txn). -- You received this message be

[appengine-java] Re: java.lang.NoSuchMethodError: javax.persistence.EntityManager.createNamedQuery

2011-04-25 Thread datanucleus
Something you have there is using JPA2, yet the GAE/J code is only for JPA1. Identify what is causing that error, and fix it to use JPA1. -- 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-a

[appengine-java] Re: java.lang.NoSuchMethodError: javax.persistence.EntityManager.createNamedQuery

2011-04-25 Thread datanucleus
> This shit happens to me all the time. > You JUST need to edit your persisting class, add a space somewhere, > and have datanucleus rebuild your class persistence stuff. Which is nothing to do with his problem. The problem in your case is Google's Eclipse plugin seems to have prob

[appengine-java] Re: "SQL injection" on App Engine ?

2011-01-11 Thread datanucleus
And that is the developer who has left it open to that. Any sane developer would have put "parameters" in the query >     String q = "select from Employee where managerID == :user && lastName == > :name"; and there any vulnerability disappears. :-P Besides which the query written like that would

[appengine-java] Re: JDO - Set property question

2011-01-11 Thread datanucleus
> That is incorrect. You can specify a filter using the == with a single value > and a list or set such as You mean AppEngine allows you to; this doesn't mean it is correct to do that. JDOQL prohibits it (see the spec). JDOQL follows Java, and the syntax Matthew gave is the valid one, not this. If

[appengine-java] Re: "SQL injection" on App Engine ?

2010-12-28 Thread datanucleus
> The query language is more or less same for datastore as relational > db, so any thing could happen to relation db querying could > happen to datastore querying. Not true. JDOQL is parsed by a parser and converted into a datastore query; SQL is not. JDOQL queries do not go there direct. The pars

[appengine-java] Re: in operator doesnt work

2010-12-28 Thread datanucleus
>  query = "select from " + PocVacationSchedule.class.getName() + " where > pocId.contains(" + pocIdList + ")"; > > where podIdList is a java.util.List of type Long Now please tell me, in Java, would you do "Long.contains(List)" ? No. Thought not. On the other hand you would do "List.contains(Long

[appengine-java] Re: in operator doesnt work

2010-12-27 Thread datanucleus
Your JDOQL query ? Where in the spec for JDOQL does it say that there is an operator "IN" ? JDOQL is Java syntax, so collection.contains() -- 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] Re: "SQL injection" on App Engine ?

2010-12-27 Thread datanucleus
SQL injection ? into a database that doesn't support SQL? Please present a clear example of how such a thing can happen and what effect it can have. The application designer is the person who allows such a thing, not the underlying API -- You received this message because you are subscribed to th

[appengine-java] Re: the support to JPA

2010-06-03 Thread datanucleus
Perhaps because JPA is an API and query language designed solely around and for RDBMS. And this is not RDBMS. JDO and JDOQL, on the other hand, were designed to be datastore agnostic, and object-centric -- You received this message because you are subscribed to the Google Groups "Google App Engi

[appengine-java] Re: JDO QUery to filter on List property

2010-05-23 Thread datanucleus
> So basically now i want to query all IntrestedParties where parties list > contain User(1) or User(5) etc. How would you write that as a line of Java ? parties.contains(:user1) || parties.contains(:user2) -- You received this message because you are subscribed to the Google Groups "Google App

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-20 Thread datanucleus
> The behavious of DataNucleus depends on the strategy I choose to generate the > @Id field. Obviously, as per DN docs (and why I asked you to show your class) :- If using pessimistic txns, then all persist/update/delete operations happen immediately. Consequently it doesn't matter

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-20 Thread datanucleus
> The behavious of DataNucleus depends on the strategy I choose to generate the > @Id field. As per the docs for DataNucleus then, which is why I asked you to show your class (and you didn't). If using pessimistic txns then any persist/update/delete will go to the datastore when inv

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread datanucleus
I've already asked you twice to post your class. You haven't. That provides no context for any comment, and I've already told you why datastore operations are delayed until commit/flush. Why do you think there's a flush() method if you think things ought to go straight to the datastore ? JPA2 spe

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread datanucleus
http://www.datanucleus.org/development/test/jpa_tck.html -- 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 go

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread datanucleus
optimistic versioning problems. An object being attributed in the datastore (which is what IDENTITY GeneratedValue type is) cannot have an identity *value* until it is flushed since it isn't *persistent* until then. And while you're at it you can run DataNucleus against H2. You should no

[appengine-java] Re: Persistent Identity of JPA Entities

2010-05-18 Thread datanucleus
g managed > means that the entity has a persistent identity, something not true here. There is nothing in the JPA spec to require the identity to be set before flush(). If there was do you really think that DataNucleus would pass the JPA1 TCK ? (which it does). > In my opinion this is a

[appengine-java] Re: Loading child entities with JPA

2010-05-17 Thread datanucleus
> I'm using version 1.3.3.1 of the SDK. I've seen the problem mentioned > on various blogs and even the App Engine group I believe but the > answer is always JDO related (dealing with fetch groups). Am I doing > something wrong or has anyone else had this problem and solved it for > JPA? JPA has a

[appengine-java] Re: @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) without @PrimaryKey

2010-05-14 Thread datanucleus
> i wanna know if this is a supported feature not a hack JDO allows "value-strategy" on any field. JPA only allows it on the PK field(s) only. I'm assuming GAE/J is supporting this, but that's for you to find out. -- You received this message because you are subscribed to the Google Groups "Goo

[appengine-java] Re: composit primary key issue

2010-05-12 Thread datanucleus
> Built-in object id classes not working in Google data store, Well they are working fine actually ... but as I already said you're using more than 1 field and THERE IS NO BUILTIN object id for composite id. > we worked as example given in the fallowing url > http://www.datanucleus.org/products/a

[appengine-java] Re: composit primary key issue

2010-05-11 Thread datanucleus
ss; so provide one. JDO only provides built-in object id classes when you have a single field as PK. The DataNucleus docs define how to define your own. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this gro

[appengine-java] Re: Error: Transaction failed to commit

2010-05-11 Thread datanucleus
You mean a transaction failed to commit and you don't tell us the real reason, so people have to guess ? Any such exception has a nested cause. -- 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 go

[appengine-java] Re: JDOQL and GeoPt

2010-05-09 Thread datanucleus
The syntax is perfectly fine. The fact is though, you have to have a particular java type to be "supported" for persistence to be able to query against it. I doubt that GeoPt is, though DataNucleus allows extensions to permit such a thing to be enabled; just that Google would have to en

[appengine-java] Re: Is there any way that key name/id can be used in JPQL/JDQL?

2010-05-06 Thread datanucleus
SELECT FROM mydomain.MyClass where myPkField = :val -- 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] Re: Problems enabling Second-level cache with JPA

2010-05-04 Thread datanucleus
And DataNucleus docs for v2.0, v2.1 don't mention GAE/J since GAE/J doesn't work with them, and we've been given no timescales when it will. The DN v1.1 docs mention GAE/J, but we have absolutely no intention of mentioning caveats to specifications necessary to run GAE/J - since

[appengine-java] Re: Unowned relationship confusion

2010-05-02 Thread datanucleus
y Role(1) has > already been persisted without a parent.  A parent cannot be established or > changed once an object has been persisted.* > > *Datanucleus* Got it? There is nothing to "get" from my perspective. JDO and JPA define two ways of storing a referenced object :- 1.

[appengine-java] Re: Unowned relationship confusion

2010-05-01 Thread datanucleus
> *Google says "unowned relationship is not supported"* > What does it mean? *How datastore  identify that *it is unowned > relationship**? No idea. It's a Google special. It's not part of any spec so it's for them to answer. > In above example, If I implement it as normal relationship, as shown

[appengine-java] Re: Unowned relationship confusion

2010-05-01 Thread datanucleus
You will only find "unowned relationships" terminology in Google docs. This "unowned relationships" in the GAE/J docs is where you have a field that is a "Key" or a Collection/Map/array of keys. So no *real* relation, just some implicit relation by that "key". You have to manage these keys yourself

[appengine-java] Re: Non-Serializable and Memcache

2010-04-30 Thread datanucleus
Does it "implements Serializable" ? No. -- 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-ja

[appengine-java] Re: JDO unowned relationship

2010-04-30 Thread datanucleus
> So a Person can have a favored Food. But a Food is not linked to only > one Person, but can be the favored Food of more than one Person. > Ok, I understand that we don’t have a Food-Object in the class Person, > but instead we have the Key to the food. > Ok, now I want to get the favored Food Obj

[appengine-java] Re: Difference between owned one to many relationship and owned one to many bidirectional relationship

2010-04-29 Thread datanucleus
> what is the difference between owned one to many relationship and > owned one to many bidirectional relationship If it has a "mappedBy" then it relates one side of the relation to the other side ... hence bidirectional. There are only two types of 1-N relation ... unidirectional (no mappedBy) an

[appengine-java] Re: Owned one to many relationship problem when parent was already existed.

2010-04-29 Thread datanucleus
> Your Problem is due to a bug in DataNucleus described at No. That is a bug in Google's plugin, since that is their issue tracker you refer to. DataNucleus current version is at version 2.1, whereas what you use there is v 1.1.x -- You received this message because you are subscribe

[appengine-java] Re: Reg. Data store update query

2010-04-20 Thread datanucleus
> How to update some existing data in datastore post an example or any > link. Retrieve an object and update it perhaps ? -- 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...@g

[appengine-java] Re: One - Many Child Persistence help

2010-04-20 Thread datanucleus
> So i've got two serializable classes and one contains a list to the > other and it just does not want to pass this to my service without > throwing this error message. So raise it on the GWT group. It's their software causing the problem. -- You received this message because you are subscribed

[appengine-java] Re: One - Many Child Persistence help

2010-04-20 Thread datanucleus
Yes, but every exception has a stack trace. Every one. Catch the exception and call e.printStackTrace(). Knowing which of your method calls results in the exception is the only answer. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group

[appengine-java] Re: One - Many Child Persistence help

2010-04-19 Thread datanucleus
> I have a method which will create a comment on some content. The Web > page updates correctly but the call to save ServerContent never works. > I get a silent failure in by AsyncCallback and it throws a > com.google.gwt.user.client.rpc.SerializationException with the details > null and stacktrace

[appengine-java] Re: Cannot persist a HashMap

2010-04-19 Thread datanucleus
> like i said before > " DataNucleus has no way of "seeing" > the changes you make to the internal values of a serialized field, and as a > result it doesn't know when it needs to flush changes to these fields to the > datastore.  However, DataNucleus *can

[appengine-java] Re: Cannot persist a HashMap

2010-04-18 Thread datanucleus
I'm sure referring to the log would tell you way more, like when an object becomes dirty, and when it is persisted and changes lifecycle state. -- 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 go

[appengine-java] Re: JDP, get objects by id

2010-04-18 Thread datanucleus
> > Is exsists any other way to get objects by one query from program, if > > I don't sure in exsists every of it? Errm, a JDOQL query perhaps SELECT FROM mydomain.MyClass WHERE :idCollection.contains(id) and pass in a collection containing the ids of the objects you need. -- You received this

[appengine-java] Re: Query for children of entity with JDO

2010-04-17 Thread datanucleus
> Thanks a lot for the thoughts Hani, but I do only want the children, So do a JDOQL query for the elements pm.newQuery("SELECT FROM MyElement WHERE myParent == :parent"); and pass in the parent object, and add on any other filter requirements. -- You received this message because you are subscr

[appengine-java] Re: Can not find JDO/datanucleus tools

2010-04-17 Thread datanucleus
> Sorry if this have been asked before.  I just started using > datanucleus JDO.  Compare to sybase/oracle/mysql, I can not find much > tools available for simple task such as make a backup, import data, a > gui to browse data. Perhaps you ought to read up on what JDO is first. It

[appengine-java] Re: Object hierarchy and GAE datastore

2010-04-15 Thread datanucleus
> I turned the relationship around and it managed to work, but I still > liked your idea of embedding the user class better since there will be > no user without a person object. You could use @Embedded with JDO (assuming Google have implemented it), and then if you use it against an RDBMS in the

[appengine-java] Re: How to create query with 4 arguments?

2010-04-15 Thread datanucleus
> I want to create JDO query with 4 arguments, but in Eclipse I got > error, that only 3 arguments are allowed. > List results = (List) q.execute(companyKey, true, true, false); Why not look at the JDO API ? It's a standard after all. http://db.apache.org/jdo/api23/apidocs/index.html executeWithA

[appengine-java] Re: ordering a query

2010-04-13 Thread datanucleus
Specify ordering in one call setOrdering("nom ASC, prenom ASC"); This doesn't fix the issue with accented letters though -- 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...@go

[appengine-java] Re: JDO files

2010-04-13 Thread datanucleus
package-{datastore}.xml is there for exactly that purpose. e.g package-appengine.xml, package-hsqldb.xml, package-oracle.xml See the DataNucleus docs -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this g

[appengine-java] Re: JPA: Query contains stale data (bug or future)?

2010-04-09 Thread datanucleus
I see no lifecycle status log entries; perhaps this is turned off. Or use JDOHelper.getObjectState(object) to see what state an object is in when retrieved from the find(), and then after the setValue(). I also see no transaction log entries. -- You received this message because you are subscribe

[appengine-java] Re: JPA: Query contains stale data (bug or future)?

2010-04-09 Thread datanucleus
> I think you've misunderstood where problem is. I simply point out where the persistence code is plain wrong; whether that has an impact on what happens after is unknown. Debugging what is happening in that particular operation you quote there ought to make reference to the log at DEBUG level sin

[appengine-java] Re: JPA: Query contains stale data (bug or future)?

2010-04-09 Thread datanucleus
I refer to your method "generateItems(Key containerKey)" where you do Item item = new Item(); item.setContainer(container); item.setValue(Integer.toString(i)); em.persist(item); Where did you put the item in the List exactly? You set the owner of the item as this container, great, but it's not in

[appengine-java] Re: JPA: Query contains stale data (bug or future)?

2010-04-09 Thread datanucleus
> I'm not serializing List's data in a single column so I don't have to > force entities to update, if I'm not mistaken. You are setting only one side of a relation from the code you present. If the relation is bidirectional then you ought to set BOTH sides. JPA does not come with "managed relatio

[appengine-java] Re: JDO Relationship Performance Problems - what am I doing wrong?

2010-04-07 Thread datanucleus
JDO to cache that collection. It > might be possible, but I couldn't figure it out. DataNucleus 2.x has L2 caching enabled by default, and caches relations (1-1, 1-N, M-N). Sadly GAE/J still doesn't support that version and no sign of when it will either (in fact DN 2.1 is in progress so

[appengine-java] Re: Have to load many objects vs. getObjectById()

2010-04-03 Thread datanucleus
getObjectsById(...) -- 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...@googl

[appengine-java] Re: makePersistentAll and updates

2010-04-01 Thread datanucleus
> I'd like to avoid having to lookup the object using the Key and then > updating it, and was wondering if I could get away with using the > makePersistentAll method as a shortcut.  The docs seem to imply I > could do this if the object was detached, but not sure how it would > behave if it was a r

[appengine-java] Re: Slow JDO and JPA

2010-03-25 Thread datanucleus
> No available StoreManager found for the datastore URL key "jdbc Since when has GAE/J been an RDBMS datastore ? Their docs state very clearly to use "appengine" as the DatastoreURL -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group.

[appengine-java] Re: Slow JDO and JPA

2010-03-25 Thread datanucleus
> OK, but it does not work with GAE. My persistence.xml contains name="javax.jdo.PersistenceManagerFactoryClass" > value="org.datanucleus.jdo.JDOPersistenceManagerFactory"/>, but In GAE/J the class ought to be org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory > following

[appengine-java] Re: why persistent manager removes non-persistent values after detaching a PersistentCapable entity ?

2010-03-24 Thread datanucleus
You mean because the JDO spec defines this behaviour ? Familiarisation with the persistence specification makes a lot of sense -- 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.

[appengine-java] Re: Slow JDO and JPA

2010-03-24 Thread datanucleus
> Where can I find way to specify the class list? I have found > http://www.datanucleus.org/products/accessplatform_1_0/jpa/persistenc... > , but it is for persistence.xml and JPA. And this http://www.datanucleus.org/products/accessplatform_1_1/jdo/persistence_unit.html which is for JDO, and persi

[appengine-java] Re: GWT+JDO+GAE enhancement nightmare

2010-03-22 Thread datanucleus
> The objects have been detached. Ok. So the objects *have* been read from the datastore, since to detach them you obviously have to retrieve them first ... then detach them. And the exception is presumably coming from GWT, but then I don't see your stack trace so have no way more than guessing.

[appengine-java] Re: GWT+JDO+GAE enhancement nightmare

2010-03-22 Thread datanucleus
"List" is not enhanced. ever. Neither is String or any other type. "Enhancement" simply adds on new methods to manage detection of changes to fields. That's all. Any persistence mechanism that wants efficient management of updates needs enhancement. Why not determine where the problem is with your

[appengine-java] Re: Slow JDO and JPA

2010-03-15 Thread datanucleus
Why read JPOX docs when JPOX was replaced 2 years ago? by the same DataNucleus software being used by GAE/J. It's website would make more sense (and is linked to in various places from the GAE/J docs). > I also don't understand it exactly. I thought that JDO uses > jdocon

[appengine-java] Re: Persisting cached objects

2010-03-15 Thread datanucleus
You mean, like what a Level2 cache is for, in JDO and JPA ? hence cutting out the need to cache things manually ... -- 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...@googlegr

[appengine-java] Re: How to best run GWTTestCase tests that involve persistence?

2010-03-15 Thread datanucleus
DataNucleus enhances the classes when you tell it to; compile time, post-compile, or runtime. You can use unenhanced classes on client, and enhanced on server without issues -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" grou

[appengine-java] Re: Slow JDO and JPA

2010-03-15 Thread datanucleus
There are past threads on here discussing the issue. The log tells you timings of what is happening. persistence-unit can be defined with the persistable classes only so it doesn't have to scan the classpath. Only when you present timings can anyone comment -- You received this message because yo

[appengine-java] Re: JPA enhancement problem (DataNucleus)

2010-03-13 Thread datanucleus
> there could be a fluke with how DataNucleus+GAE interpret a particular > feature/annotation The log would tell you if that was the case. More likely the GAE/J Eclipse plugin of hasn't detected a change in the source file. Obviously there is also the DataNucleus Eclipse pl

[appengine-java] Re: Not able to write string arrays in data store

2010-03-13 Thread datanucleus
I said have a dummy class with an ArrayList, not a dummy class with a multiple-dimension array. I also said make the dummy class persistable ... @PersistenceCapable. Nothing worthy of an example -- You received this message because you are subscribed to the Google Groups "Google App Engine for J

[appengine-java] Re: Not able to write string arrays in data store

2010-03-13 Thread datanucleus
So you didn't declare the dummy class as persistable like I mentioned that you ought to do ... -- 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 unsubscr

  1   2   3   4   >