[appengine-java] Snow Leopard Trouble

2009-08-30 Thread yasuyuki

Hi. I use Eclipse 3.4.2 and GAE/J Plugin.
I update my Mac to Mac OS 10.6 Snow Leopard, I caught an error when
start my appengine project below:

"You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X."

My Snow Leopard has 64-bit or 32-bit JRE 1.6 ontly, has not JRE 1.5.
How to run GAE/J on Snow Leopard ?

thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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: Better or Tighter Google Check-out integration Please

2009-08-30 Thread victor

Looks like there is already an enhancement request for this one:
http://code.google.com/p/googleappengine/issues/detail?id=25&q=checkout&colspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component

On Aug 30, 9:19 am, David Fuelling  wrote:
> Currently the only solution here is to point Googlecheckoutto use
> SSL on the appengine domain for your app:
>
> https://your-app-id.appspot.com/
>
> It's not ideal (and there's lots of clamoring for Google to support
> SSL on custom domains), but this solution should work for you since
> your customers/users aren't going to be seeing these notifications or
> the URL being used.
>
> david
>
> On Aug 30, 1:28 am, victor  wrote:
>
> > Please provide better integration with Google check-out. I am creating
> > a google app but I am having trouble integrating with Google Check-out
> > when it comes to supporting Notifications 
> > --http://code.google.com/apis/checkout/developer/Google_Checkout_XML_AP
>
> > From the Google Check-out requirements for processing
> > notifcation:"Your web service must be secured by SSL v3 or TLS and
> > must use a valid SSL certificate. The API callback URL that you use
> > for your production account must use port 443, which is the default
> > port for HTTPS. "
--~--~-~--~~~---~--~~
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] Problem with a query and index

2009-08-30 Thread loudo

Hello,

This is my query.

select Table where  resolution ==  mresolution && slice == mslice &&
geobox == mgeobox &&  dateDisponibilite >= mdatedispo  parameters int
mresolution, int mslice, String mgeobox, Date mdatedispo

When i execute it i have the follow message : "no matching index
found"

I try to create an index with the datastore-indexes.xml file. I try
all possibilities but it doesn't work, i have always the same message.

When i remove this part ( dateDisponibilite >= mdatedispo ) in the
query it works.

Thanks for your help.
--~--~-~--~~~---~--~~
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] JPA on App Engine ... how hard can it be?

2009-08-30 Thread Larry Cable

the problem is simple:

@Entity
public class Company implements Serializable {
// ...
public Company(String irsEIN) {
ein = irsEIN;
// ...
}

@Id String ein; // the IRS EIN for the company ... this is a
unique id and a good one to use for PK?

   // ...
}


... no it isn't because you get an exception when you commit one of
these suckers:

WARNING: java.lang.IllegalArgumentException: Name may not start with a
digit.
at com.google.appengine.api.datastore.Key.(Key.java:112)
at com.google.appengine.api.datastore.Key.(Key.java:89)
at com.google.appengine.api.datastore.KeyFactory.createKey
(KeyFactory.java:72)
at com.google.appengine.api.datastore.KeyFactory.createKey
(KeyFactory.java:57)
at com.google.appengine.api.datastore.Entity.(Entity.java:114)
at
org.datanucleus.store.appengine.DatastoreFieldManager.storeStringPKField
(DatastoreFieldManager.java:511)
at
org.datanucleus.store.appengine.DatastoreFieldManager.storeStringField
(DatastoreFieldManager.java:421)
at org.datanucleus.state.AbstractStateManager.providedStringField
(AbstractStateManager.java:1023)
at com.charityblossom.dao.entities.Charity.jdoProvideField
(Charity.java)
at com.charityblossom.dao.entities.Charity.jdoProvideFields
(Charity.java)
at org.datanucleus.state.JDOStateManagerImpl.provideFields
(JDOStateManagerImpl.java:2715)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObject
(DatastorePersistenceHandler.java:180)
at org.datanucleus.state.JDOStateManagerImpl.internalMakePersistent
(JDOStateManagerImpl.java:3185)
at org.datanucleus.state.JDOStateManagerImpl.flush
(JDOStateManagerImpl.java:4513)
at org.datanucleus.ObjectManagerImpl.flushInternal
(ObjectManagerImpl.java:2814)
at org.datanucleus.ObjectManagerImpl.flush(ObjectManagerImpl.java:
2754)
at org.datanucleus.ObjectManagerImpl.preCommit(ObjectManagerImpl.java:
2893)
at org.datanucleus.TransactionImpl.internalPreCommit
(TransactionImpl.java:369)
at org.datanucleus.TransactionImpl.commit(TransactionImpl.java:256)
at org.datanucleus.jpa.EntityTransactionImpl.commit
(EntityTransactionImpl.java:104)

...

So, you think, "no problem I actually want it as a number anyway..."
so you change the code like so:

@Entity
public class Company implements Serializable {
// ...
public Company(Long irsEIN) {
ein = irsEIN;
// ...
}

@Id Long ein; // the IRS EIN for the company ... this is a unique
id and a good one to use for PK?

   // ...
}

Problem solved? 

WARNING: javax.persistence.PersistenceException: Attempt was made to
manually set the id component of a Key primary key.  If you want to
control the value of the primary key, set the name component instead.
at
org.datanucleus.jpa.NucleusJPAHelper.getJPAExceptionForNucleusException
(NucleusJPAHelper.java:264)
at org.datanucleus.jpa.EntityTransactionImpl.commit
(EntityTransactionImpl.java:122)

Nope! ...

Now I want to use JPA because I want my code to be portable, so I
really dont want to care about JDO,
DataNucleus or the App Engine Datastore ...

This exception error message is meaningless to me ... even after
reading the App Engine and DataNucleus
documentation ...

Also, on a slightly related issue, should I have to obtain an
EntityManager transaction for each instance
of this class I wish to persist?

I'd appreciate any suggestions anyone might have?

--~--~-~--~~~---~--~~
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] Has anyone got JPA to persist a simple entity with an application supplied primary key???

2009-08-30 Thread Larry Cable

I have pretty much spent the last week on and off trying to get JPA to
persist a "simple" entity with an
application supplied key to no avail whatsoever, so if anyone has any
ideas I would appreciate them!

The task is simple:

@Entity
public class Company implements Serializable {

}
--~--~-~--~~~---~--~~
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: Exception while deploying JSP Tag Lib Files

2009-08-30 Thread Albert Attard
Hi:
If you're using Eclipse, please check your installed JDK. Follow this blog
for details:
http://albertattard.blogspot.com/2009/08/jsp-compile-error-in-eclipse.html

Hope
this helps,
Albert Attard

Ogden Nash   -
"The trouble with a kitten is that when it grows up, it's always a cat."

2009/8/30 Klaro 

>
> I'm trying to use Tag Libs that are expressed as JSP file (as
> explained in JSP Spec V2.1, §8 and §8.5). Those JSP Tag Lib files need
> to be placed in a subdir of WEB-INF/tags - usually with the file name
> extension ".tag" or "tagx" insetad of ".jsp" or "jspx".
>
> Creating & using them on the dev system works fine and as expected,
> but when I deploy them, I get the exception below - no matter how
> simple the content is.
>
> There is a message saying "Unable to find a javac compiler" and
> "Perhaps JAVA_HOME does not point to the JDK". Since compiling of
> regular JPS files works fine during deployment this cannot be the real
> reason (BTW, JAVA_HOME *is* set properly).
>
> Any ideas? Fixes needed?
>
> Regards,
>
> Klaus
>
> -- snip  snap 
> Creating staging directory
> Scanning for jsp files.
> Compiling jsp files.
> com.google.appengine.tools.admin.JspCompilationException: Failed to
> compile jsp files.
> 30.08.2009 22:39:37 org.apache.jasper.JspC processFile
> INFO: Built File: \test.jsp
> 30.08.2009 22:39:37 org.apache.jasper.compiler.Compiler generateClass
> SCHWERWIEGEND: Error compiling file: /E:/Temp/Windows/appcfg35419.tmp/
> WEB-INF/classes//org/apache/jsp/tag/web/utils\clearcache_tagx.java
> [javac] Compiling 1 source file
>
> 30.08.2009 22:39:37 org.apache.jasper.compiler.Compiler generateClass
> SCHWERWIEGEND: Javac exception
> Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK
>at
> org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler
> (CompilerAdapterFactory.java:105)
>at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:924)
>at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
>at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:
> 382)
>at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
>at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>at org.apache.jasper.JspCompilationContext.compile
> (JspCompilationContext.java:511)
>at org.apache.jasper.servlet.JspServletWrapper.loadTagFile
> (JspServletWrapper.java:201)
>at org.apache.jasper.compiler.TagFileProcessor.loadTagFile
> (TagFileProcessor.java:514)
>at org.apache.jasper.compiler.TagFileProcessor.access$000
> (TagFileProcessor.java:47)
>at org.apache.jasper.compiler.TagFileProcessor
> $TagFileLoaderVisitor.visit(TagFileProcessor.java:565)
>at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
>at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
>at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2224)
>at org.apache.jasper.compiler.Node$JspRoot.accept(Node.java:525)
>at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
>at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
>at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
>at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>at org.apache.jasper.compiler.TagFileProcessor.loadTagFiles
> (TagFileProcessor.java:583)
>at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:
> 226)
>at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
>at org.apache.jasper.JspC.processFile(JspC.java:779)
>at org.apache.jasper.JspC.execute(JspC.java:908)
>at com.google.appengine.tools.development.LocalJspC.main
> (LocalJspC.java:17)
>
>   [...rest of messages omitted...]
>
> - end of stacktrace ---
>
>
> - A few lines further below --
>
> Generated servlet error:
>extension dir=C:\Programme\Java\JDK 6\jre\lib\ext;C:\Windows\Sun
> \Java\lib\ext
>srcDir=E:\Temp\Windows\appcfg35419.tmp\WEB-INF\classes
>include=org/apache/jsp/tag/web/utils/clearcache_tagx.java
>
> Debugging information may be found in E:\Temp\Windows\appengine-
> deploy35418.log
>
> -- appengine-deploy35418.log 
> Unable to upload:
> com.google.appengine.tools.admin.JspCompilationException: Failed to
> compile jsp files.
>at com.google.appengine.tools.admin.Application.compileJsps
> (Application.java:357)
>at
> com.google.appen

[appengine-java] Exception while deploying JSP Tag Lib Files

2009-08-30 Thread Klaro

I'm trying to use Tag Libs that are expressed as JSP file (as
explained in JSP Spec V2.1, §8 and §8.5). Those JSP Tag Lib files need
to be placed in a subdir of WEB-INF/tags - usually with the file name
extension ".tag" or "tagx" insetad of ".jsp" or "jspx".

Creating & using them on the dev system works fine and as expected,
but when I deploy them, I get the exception below - no matter how
simple the content is.

There is a message saying "Unable to find a javac compiler" and
"Perhaps JAVA_HOME does not point to the JDK". Since compiling of
regular JPS files works fine during deployment this cannot be the real
reason (BTW, JAVA_HOME *is* set properly).

Any ideas? Fixes needed?

Regards,

Klaus

-- snip  snap 
Creating staging directory
Scanning for jsp files.
Compiling jsp files.
com.google.appengine.tools.admin.JspCompilationException: Failed to
compile jsp files.
30.08.2009 22:39:37 org.apache.jasper.JspC processFile
INFO: Built File: \test.jsp
30.08.2009 22:39:37 org.apache.jasper.compiler.Compiler generateClass
SCHWERWIEGEND: Error compiling file: /E:/Temp/Windows/appcfg35419.tmp/
WEB-INF/classes//org/apache/jsp/tag/web/utils\clearcache_tagx.java
[javac] Compiling 1 source file

30.08.2009 22:39:37 org.apache.jasper.compiler.Compiler generateClass
SCHWERWIEGEND: Javac exception
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler
(CompilerAdapterFactory.java:105)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:924)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:
382)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile
(JspCompilationContext.java:511)
at org.apache.jasper.servlet.JspServletWrapper.loadTagFile
(JspServletWrapper.java:201)
at org.apache.jasper.compiler.TagFileProcessor.loadTagFile
(TagFileProcessor.java:514)
at org.apache.jasper.compiler.TagFileProcessor.access$000
(TagFileProcessor.java:47)
at org.apache.jasper.compiler.TagFileProcessor
$TagFileLoaderVisitor.visit(TagFileProcessor.java:565)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2224)
at org.apache.jasper.compiler.Node$JspRoot.accept(Node.java:525)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.TagFileProcessor.loadTagFiles
(TagFileProcessor.java:583)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:
226)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
at org.apache.jasper.JspC.processFile(JspC.java:779)
at org.apache.jasper.JspC.execute(JspC.java:908)
at com.google.appengine.tools.development.LocalJspC.main
(LocalJspC.java:17)

   [...rest of messages omitted...]

- end of stacktrace ---


- A few lines further below --

Generated servlet error:
extension dir=C:\Programme\Java\JDK 6\jre\lib\ext;C:\Windows\Sun
\Java\lib\ext
srcDir=E:\Temp\Windows\appcfg35419.tmp\WEB-INF\classes
include=org/apache/jsp/tag/web/utils/clearcache_tagx.java

Debugging information may be found in E:\Temp\Windows\appengine-
deploy35418.log

-- appengine-deploy35418.log 
Unable to upload:
com.google.appengine.tools.admin.JspCompilationException: Failed to
compile jsp files.
at com.google.appengine.tools.admin.Application.compileJsps
(Application.java:357)
at com.google.appengine.tools.admin.Application.createStagingDirectory
(Application.java:237)
at com.google.appengine.tools.admin.AppAdminImpl.update
(AppAdminImpl.java:51)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
(AppEngineBridgeImpl.java:271)
at
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)



--~--~-~--~~~--

[appengine-java] Re: JDO on localhost

2009-08-30 Thread Choopong C.
Hi Maciej,

You are magician.

Yes, the lib in war still be 1.2.1.

It was my fault that I have updated the App Engine SDK from 1.2.1 to 1.2.2
via Eclipse but did not update the lib in the existing project.

Thank you so much for your help :)

Cheers,
Choopong.



On Mon, Aug 31, 2009 at 12:15 AM, Maciej Machulak  wrote:

> Maciej
>

--~--~-~--~~~---~--~~
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: JDO on localhost

2009-08-30 Thread Maciej Machulak

Hi,

How about files located in: /war/WEB-INF/lib? Those should
reflect your SDK 1.2.2 version. The problem you're having occurs if
those files are from 1.2.1 version.

Hope this helps! Anyway, good luck! :-)

Cheers,
Maciej

2009/8/30 Choopong C. :
> Hi Jason,
>
> Thanks for you help.
>
> My SDK version is 1.2.2
>
> And the correct URL is http://localhost:8080/_ah/admin not
> http://localhost:8080/_ah/admin/.
>
> So, now I know now I'm able to save the data but I'm wondering why I cannot
> retrieve it?
> The query code are in JSP same as Getting Started document and it always
> show "The guestbook has no messages.".
>
> Anyway, my code and log are in attachments.
>
> Please advise.
>
> Cheers,
> Choopong.
>
> On Sat, Aug 29, 2009 at 1:00 AM, Jason (Google)  wrote:
>>
>> You should be able to see http://localhost:8080/_ah/admin if your project
>> is configured to use the latest SDK. Can you right-click your project, click
>> Properties, then select the Google option and App Engine beneath it to see
>> which version of the SDK you're using?
>>
>> Are you seeing any errors when you try to post a message? How are you
>> verifying that messages aren't being posted? If you change the levels in
>> your logging.properties file to FINEST, you should be able to see the debug
>> output from App Engine's DataNucleus plugin which provide some clues.
>> - Jason
>> On Thu, Aug 27, 2009 at 4:09 AM, Choopong C.  wrote:
>>>
>>> Hi Leszek and Jason,
>>>
>>> Thanks for your answer and sorry for my very delay reply. I just have
>>> time to back to this project.
>>>
>>> Yes, I know I should be able to use JDO/JPS in local but actually I
>>> can't.
>>>
>>> My guest book app (from following the java starting guide) seems unable
>>> to save the posted message to local database.
>>>
>>> Additionally, I cannot access to http://localhost:8080/_ah/admin/. (Error
>>> 404)
>>>
>>> My Eclipse is 3.4 and Google Plugin version is shown in attachment.
>>>
>>> Please advise.
>>>
>>> Cheers,
>>> Choopong.
>>>
>>> On Thu, Jul 30, 2009 at 4:40 AM, Jason (Google) 
>>> wrote:

 Hi Choopong. You should be able to use JDO/JPA in the local environment.
 Object's are stored in a local database so you can verify that your
 persistence code is working. There is also a local data viewer that you can
 use to preview your entities -- if you're running your local development
 server on port 8080, just go to http://localhost:8080/_ah/admin/.
 - Jason

 On Tue, Jul 28, 2009 at 2:11 AM, Choopong Choosamer
  wrote:
>
> Hi,
>
> A quick question.
>
> I have followed the getting start guide for Java and I found that I
> have to run it in GAE to get the result in JDO topic (http://
> code.google.com/appengine/docs/java/gettingstarted/
> usingdatastore.html).
>
> How can I test JDO on localhost?
>
> What about JPA?
>
> Regards,
> Choopong.
>



>>>
>>>
>>>
>>
>>
>>
>
>
> >
>



-- 
Maciej Machulak
email: maciej.machu...@gmail.com
tel: +48 602 45 31 44
tel: +44 7999 606 767

--~--~-~--~~~---~--~~
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: Spring don't support this Relationship

2009-08-30 Thread ryvius

Oh dear, I passed the unit test without Spring yesterday . But now I
can not pass my test again.

Now, I uploade my test code about two problems below:
1.this problem.
2.http://groups.google.com/group/google-appengine-java/browse_thread/
th...

there are my test codes(need appengine-api-stubs.jar and appengine-
local-
runtime.jar):
http://sites.google.com/site/ryviusjygo/Home/GAETest_byRyvius.zip?attredirects=0

On Aug 30, 10:29 pm, datanucleus  wrote:
> Please explain what Spring has to do with persistence of relationships.
--~--~-~--~~~---~--~~
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: Spring don't support this Relationship

2009-08-30 Thread ryvius

Oh dear, I passed the unit test without Spring yesterday .  But now i
can not pass my test again.
Now, I uploade my test code about two problems below:

1.this problem.
2.issue about JDO Relationship in JUnit
http://groups.google.com/group/google-appengine-java/browse_thread/thread/fc1048c76c195861?hl=en

this is my test code(need appengine-api-stubs.jar and appengine-local-
runtime.jar):
http://sites.google.com/site/ryviusjygo/Home/GAETest_byRyvius.zip?attredirects=0

On Aug 30, 10:53 pm, ryvius  wrote:
> I use Spring 2.5.6. Whatever you use Spring ORM or only Spring web
> context.
> You should found it.
>
> On Aug 30, 10:29 pm, datanucleus  wrote:
>
> > Please explain what Spring has to do with persistence of relationships.
--~--~-~--~~~---~--~~
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: Problem with a query involving dates...

2009-08-30 Thread cdub

Found another article with a similar problem. All fixed. Needed to
better strip out the time information.
cw

On Aug 28, 8:05 am, cdub  wrote:
> Hello,
>
> I'm creating a class that help me keep track on which dates certain
> types of activities occur (user registration, logins, etc).
>
> I'm having a problem getting my incrementCounter() method to correct
> query for whether an event of that type has already occurred on that
> date. I believe it's because I'm not doing the date comparison of the
> query correctly. Any help would be appreciated as there isn't a lot of
> sample code out there on date queries.
>
> Thanks,
> cw
>
> ---
>
> import java.util.*;
> import java.util.logging.Logger;
> import javax.jdo.Query;
> import javax.jdo.PersistenceManager;
> import javax.jdo.annotations.IdGeneratorStrategy;
> import javax.jdo.annotations.IdentityType;
> import javax.jdo.annotations.PersistenceCapable;
> import javax.jdo.annotations.Persistent;
> import javax.jdo.annotations.PrimaryKey;
> import java.util.Properties;
> import com.something.PMF;
>
> @PersistenceCapable(identityType = IdentityType.APPLICATION)
> public class DayCount {
>         private static final Logger log = Logger.getLogger
> (DayCount.class.getName());
>
>         @PrimaryKey
>         @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>         private Long id;
>
>         @Persistent
>         private String countType;
>
>         @Persistent
>         private Date whichDay;
>
>         @Persistent
>         private int count;
>
>         public DayCount(String countType, Date whichDay) {
>                 this.countType = countType;
>                 this.whichDay = removeTime(whichDay);
>                 this.count = 0;
>         }
>
>         public static List getCounts(String countType) {
>                 PersistenceManager pm = PMF.get().getPersistenceManager();
>                 Query query = 
> pm.newQuery(com.mathblitz.models.DayCount.class);
>                 query.setFilter("countType == countTypeParam");
>                 query.setOrdering("whichDay desc");
>                 query.declareParameters("String countTypeParam");
>
>                 List results = null;
>
>                 try {
>                         results = (List) query.execute(countType);
>                 } finally {
>                     query.closeAll();
>                 }
>
>                 return results;
>         }
>
>         public static boolean incrementCount(String countType, Date whichDay)
> {
>                 boolean returnVal = false;
>
>                 PersistenceManager pm = PMF.get().getPersistenceManager();
>                 Query query = pm.newQuery(DayCount.class);
>                 query.setFilter("countType == countTypeParam && whichDay ==
> whichDayParam");
>                 query.declareImports("import java.util.Date");
>                 query.declareParameters("String countTypeParam, Date
> whichDayParam");
>
>                 List results = null;
>                 DayCount dc = null;
>
>                 try {
>                         results = (List) query.execute(countType, 
> removeTime
> (whichDay));
>                         log.warning("Results: " + results.size() + " for 
> date: " +
> removeTime(whichDay));
>
>                         if (results.size() == 0) {
>                                 dc = new DayCount(countType, whichDay);
>                                 dc.count = 1;
>                                 log.warning("New Object Count: " + dc.count);
>                                 pm.makePersistent(dc);
>                                 returnVal = true;
>                         } else if (results.size() == 1) {
>                                 dc = results.get(0);
>                                 dc.count++;
>                                 log.warning("Existing Object Count: " + 
> dc.count);
>                                 pm.makePersistent(dc);
>                                 returnVal = true;
>                         } else {
>                                 log.warning("Too many results for countType: 
> " + countType + "
> day: " + whichDay.toString());
>                         }
>                 } catch (Exception e) {
>                         log.warning(e + "");
>                 } finally {
>                     query.closeAll();
>                     pm.close();
>                 }
>
>                 return returnVal;
>         }
>
>         // Get rid of time stamp
>         public static Date removeTime(Date whichDay) {
>                 whichDay.setHours(0);
>                 whichDay.setMinutes(0);
>                 whichDay.setSeconds(0);
>                 return whichDay;
>         }
>
> }
--~--~-~--~~~---~--~~
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

[appengine-java] issues with compass for GAE apps

2009-08-30 Thread Vik
Hie
Any one using compass on his GAE app?

I am frequently getting error cannot initialize PMF where there is static
code to initialize compass apis.
Any idea how to resolve?

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com

--~--~-~--~~~---~--~~
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] GAE Eclipse plugin - "Uploading 0 files."

2009-08-30 Thread barak

Hello,

I'm trying to upload static files as part of my webapp, placed under
war/myfolder/. I've copied some files to there, then tried to upload
them to GAE, but nothing of these files uploaded. This is the pluging
output:

Creating staging directory
Scanning for jsp files.
Compiling jsp files.
Compiling java files.
Scanning files on local disk.
Initiating update.
Cloning 52 static files.
Cloning 144 application files.
Cloned 100 files.
Uploading 0 files.
Deploying new version.
Will check again in 1 seconds
Will check again in 2 seconds
Closing update: new version is ready to start serving.
Uploading index definitions.
Deployment completed successfully.

What should I do in order to upload these files?

Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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: Errors while uploading the application

2009-08-30 Thread barak

Can you share how do you upload the files? Can you share the appengine-
web.xml file?

I had that kind problem in the past, and it resulted due to bad config
in appengine-web.xml.

On Aug 30, 3:38 pm, Mita Sakhalkar  wrote:
> Hi
>
> I have issues updating the application. I have read about the account
> activation, all that i want to know is , till now i was able to update
> the application and i have updated 9 times, it has worked fine, but
> today when tried updating  it threw an error saying
>
> java.io.IOException: Error posting to 
> URL:http://appengine.google.com/api/appversion/create?app_id
>
> I don't know how to proceed from here , please help.
>
> Thanks in advance
--~--~-~--~~~---~--~~
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: JDO on localhost

2009-08-30 Thread Choopong C.
Hi Jason,

Thanks for you help.

My SDK version is 1.2.2

And the correct URL is http://localhost:8080/_ah/admin not
http://localhost:8080/_ah/admin/.

So, now I know now I'm able to save the data but I'm wondering why I cannot
retrieve it?
The query code are in JSP same as Getting Started document and it always
show "The guestbook has no messages.".

Anyway, my code and log are in attachments.

Please advise.

Cheers,
Choopong.

On Sat, Aug 29, 2009 at 1:00 AM, Jason (Google)  wrote:

> You should be able to see http://localhost:8080/_ah/admin if your project
> is configured to use the latest SDK. Can you right-click your project, click
> Properties, then select the Google option and App Engine beneath it to see
> which version of the SDK you're using?
>
> Are you seeing any errors when you try to post a message? How are you
> verifying that messages aren't being posted? If you change the levels in
> your logging.properties file to FINEST, you should be able to see the debug
> output from App Engine's DataNucleus plugin which provide some clues.
>
> - Jason
>
> On Thu, Aug 27, 2009 at 4:09 AM, Choopong C.  wrote:
>
>> Hi Leszek and Jason,
>>
>> Thanks for your answer and sorry for my very delay reply. I just have time
>> to back to this project.
>>
>> Yes, I know I should be able to use JDO/JPS in local but actually I can't.
>>
>> My guest book app (from following the java starting guide) seems unable to
>> save the posted message to local database.
>>
>> Additionally, I cannot access to http://localhost:8080/_ah/admin/. (Error
>> 404)
>>
>> My Eclipse is 3.4 and Google Plugin version is shown in attachment.
>>
>> Please advise.
>>
>> Cheers,
>> Choopong.
>>
>>
>> On Thu, Jul 30, 2009 at 4:40 AM, Jason (Google) wrote:
>>
>>> Hi Choopong. You should be able to use JDO/JPA in the local environment.
>>> Object's are stored in a local database so you can verify that your
>>> persistence code is working. There is also a local data viewer that you can
>>> use to preview your entities -- if you're running your local development
>>> server on port 8080, just go to http://localhost:8080/_ah/admin/.
>>> - Jason
>>>
>>>
>>> On Tue, Jul 28, 2009 at 2:11 AM, Choopong Choosamer >> > wrote:
>>>

 Hi,

 A quick question.

 I have followed the getting start guide for Java and I found that I
 have to run it in GAE to get the result in JDO topic (http://
 code.google.com/appengine/docs/java/gettingstarted/
 usingdatastore.html
 ).

 How can I test JDO on localhost?

 What about JPA?

 Regards,
 Choopong.


>>>
>>>
>>>
>>
>>
>>
>
> >
>

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

Aug 30, 2009 3:02:08 PM org.datanucleus.ConnectionManagerImpl allocateConnection
FINE: Connection added to the pool : 
org.datanucleus.store.appengine.datastoreconnectionfactoryimpl$datastoremanagedconnect...@1b2b131
Aug 30, 2009 3:02:08 PM org.datanucleus.ConnectionManagerImpl allocateConnection
FINE: Connection found in the pool : 
org.datanucleus.store.appengine.datastoreconnectionfactoryimpl$datastoremanagedconnect...@1b2b131
Aug 30, 2009 3:02:08 PM org.datanucleus.ConnectionManagerImpl allocateConnection
FINE: Connection found in the pool : 
org.datanucleus.store.appengine.datastoreconnectionfactoryimpl$datastoremanagedconnect...@1b2b131
Aug 30, 2009 3:02:08 PM org.datanucleus.ObjectManagerImpl 
performReachabilityAtCommit
FINE: Performing check of objects for "persistence-by-reachability" (commit) ...
Aug 30, 2009 3:02:08 PM org.datanucleus.ObjectManagerImpl 
performReachabilityAtCommit
FINE: Completed check of objects for "persistence-by-reachability" (commit).
Aug 30, 2009 3:02:08 PM 
com.google.apphosting.utils.jetty.AppEngineAuthentication$AppEngineAuthenticator
 authenticate
FINE: Got /sign with null response, returning null.
Aug 30, 2009 3:02:08 PM org.apache.jasper.servlet.JspServlet service
FINE: JspEngine --> /guestbook.jsp
Aug 30, 2009 3:02:08 PM org.apache.jasper.servlet.JspServlet service
FINE:ServletPath: /guestbook.jsp
Aug 30, 2009 3:02:08 PM org.apache.jasper.servlet.JspServlet service
FINE:   PathInfo: null
Aug 30, 2009 3:02:08 PM org.apache.jasper.servlet.JspServlet service
FINE:   RealPath: 
D:\choopong\eclipse-jee-ganymede-SR2-win32-workspace\Guestbook\war\guestbook.jsp
Aug 30, 2009 3:02:08 PM org.apache.jasper.servlet.JspServlet service
FINE: RequestURI: /guestbook.jsp
Aug 30, 2009 3:02:08 PM org.a

[appengine-java] Re: Spring don't support this Relationship

2009-08-30 Thread ryvius

I use Spring 2.5.6. Whatever you use Spring ORM or only Spring web
context.
You should found it.

On Aug 30, 10:29 pm, datanucleus  wrote:
> Please explain what Spring has to do with persistence of relationships.
--~--~-~--~~~---~--~~
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: Spring don't support this Relationship

2009-08-30 Thread datanucleus

Please explain what Spring has to do with persistence of relationships.
--~--~-~--~~~---~--~~
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] Spring don't support this Relationship

2009-08-30 Thread ryvius

While I  tried  to use the Spring in GAE, I found this bugs:

I have 3 entity. A B C
their relationships as below:
B many-to-one A
C many-to-one A
Up to now, it's work fine.

But when i add a relationships:
B many-to-one C.
You could find that when you try to persist B via A  (e.g. A.getBlist
().add(B).) the B can't be persisted.

If you use Spring in GAE, you should found it.

I have removed Spring framework from my application.
--~--~-~--~~~---~--~~
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: issue about JDO Relationship in JUnit

2009-08-30 Thread ryvius

Hi, Tica.

I have tried your method, but still fail.
In your test, you only get one entity. but i have two.
A entity and B entity, A has a List
I could get A entity or B entity alone.
but I can not get List via A.

I think it is a bug of GAE.
I have a solution for this issue. Use single PersistenceManager in
unit test.
I hope GAE to fix this bug in future.

On Aug 30, 7:27 pm, Tica2  wrote:
> I have method
> public PersistenceManagerFactory getPersistenceManagerFactory() for
> PersistenceManagerFactory
> insted of private static final PersistenceManagerFactory pmfInstance
> =
> ===
>
> private PersistenceManagerFactory pmf;
>
>         public PersistenceManagerFactory getPersistenceManagerFactory() {
>                 if (pmf == null) {
>                         Properties newProperties = new Properties();
>                         
> newProperties.put("javax.jdo.PersistenceManagerFactoryClass",
>                                         
> "org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory");
>                         newProperties.put("javax.jdo.option.ConnectionURL", 
> "appengine");
>                         
> newProperties.put("javax.jdo.option.NontransactionalRead", "true");
>                         
> newProperties.put("javax.jdo.option.NontransactionalWrite",
> "true");
>                         newProperties.put("javax.jdo.option.RetainValues", 
> "true");
>                         
> newProperties.put("datanucleus.appengine.autoCreateDatastoreTxns",
> "true");
>                         pmf = 
> JDOHelper.getPersistenceManagerFactory(newProperties);
>                 }
>                 return pmf;
>         }
>
> this method is write on LocalDatastoreTestCase class
>
> and test class is like
>
> public class JdoSimpleTestCase extends LocalDatastoreTestCase {
>         public void testSimple() {
>                 PersistenceManagerFactory pmf = 
> getPersistenceManagerFactory();
>                 DataJdo dataJdo = new DataJdo();
>                 dataJdo.setStringVal("tata");
>                 dataJdo.setIntegerVal(1);
>                 PersistenceManager pm = pmf.getPersistenceManager();
>                 try {
>                         System.out.println("Before: " + dataJdo.toString());
>                         pm.makePersistent(dataJdo);
>                         System.out.println("After: " + dataJdo.toString());
>                 } finally {
>                         pm.close();
>                 }
>                 pm = pmf.getPersistenceManager();
>                 dataJdo = (DataJdo) pm.getObjectById(DataJdo.class, 
> dataJdo.getId
> ());
>                 System.out.println("Retrive: " + dataJdo.toString());
>                 pm.close();
>         }
>
>        // more tests
>
> }
>
> these suggestions can help
>
> --
> Petrica Clement Chiriac (Tica2)
> Fluxinternet SRL
--~--~-~--~~~---~--~~
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: Better or Tighter Google Check-out integration Please

2009-08-30 Thread David Fuelling

Currently the only solution here is to point Google checkout to use
SSL on the appengine domain for your app:

https://your-app-id.appspot.com/

It's not ideal (and there's lots of clamoring for Google to support
SSL on custom domains), but this solution should work for you since
your customers/users aren't going to be seeing these notifications or
the URL being used.

david

On Aug 30, 1:28 am, victor  wrote:
> Please provide better integration with Google check-out. I am creating
> a google app but I am having trouble integrating with Google Check-out
> when it comes to supporting Notifications 
> --http://code.google.com/apis/checkout/developer/Google_Checkout_XML_AP
>
> From the Google Check-out requirements for processing
> notifcation:"Your web service must be secured by SSL v3 or TLS and
> must use a valid SSL certificate. The API callback URL that you use
> for your production account must use port 443, which is the default
> port for HTTPS. "
--~--~-~--~~~---~--~~
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] Max Read / Queries per Second in Datastore?

2009-08-30 Thread David Fuelling

Hi,

In other threads on this forum I've read that the Datastore can handle
between 1 and 10 Writes per Second for an Entity (or Entity Group).

I'm wondering if there's a similar bottleneck for reads-ueries in the
datastore.  Does anyone know what the max number of Reads I should
expect is?

Thanks!

David
--~--~-~--~~~---~--~~
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] Errors while uploading the application

2009-08-30 Thread Mita Sakhalkar

Hi

I have issues updating the application. I have read about the account
activation, all that i want to know is , till now i was able to update
the application and i have updated 9 times, it has worked fine, but
today when tried updating  it threw an error saying

java.io.IOException: Error posting to URL: 
http://appengine.google.com/api/appversion/create?app_id

I don't know how to proceed from here , please help.

Thanks in advance

--~--~-~--~~~---~--~~
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] Log4J vs. java.util.logging in App Engine projects

2009-08-30 Thread Bill Higgins

Hi, I'm new to App Engine development, and am a bit confused by the
logging configuration files that the Google Eclipse project produces
in a new web application project.

When you create a new web app project, the new project includes two
logging configuration files:

/src/log4j.properties
/war/WEB-INF/logging.properties

I understand that the first is for log4j and the second for
java.util.logging but I'm not sure why one would need both and how
each affect logging determinations. If I make changes to one should I
make changes to another? Is there a safe way to delete one and simply
use the other? If so which one is the keeper?

Thanks in advance.
--~--~-~--~~~---~--~~
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: issue about JDO Relationship in JUnit

2009-08-30 Thread Tica2


I have method
public PersistenceManagerFactory getPersistenceManagerFactory() for
PersistenceManagerFactory
insted of private static final PersistenceManagerFactory pmfInstance
=
===

private PersistenceManagerFactory pmf;

public PersistenceManagerFactory getPersistenceManagerFactory() {
if (pmf == null) {
Properties newProperties = new Properties();

newProperties.put("javax.jdo.PersistenceManagerFactoryClass",

"org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory");
newProperties.put("javax.jdo.option.ConnectionURL", 
"appengine");

newProperties.put("javax.jdo.option.NontransactionalRead", "true");

newProperties.put("javax.jdo.option.NontransactionalWrite",
"true");
newProperties.put("javax.jdo.option.RetainValues", 
"true");

newProperties.put("datanucleus.appengine.autoCreateDatastoreTxns",
"true");
pmf = 
JDOHelper.getPersistenceManagerFactory(newProperties);
}
return pmf;
}

this method is write on LocalDatastoreTestCase class

and test class is like

public class JdoSimpleTestCase extends LocalDatastoreTestCase {
public void testSimple() {
PersistenceManagerFactory pmf = getPersistenceManagerFactory();
DataJdo dataJdo = new DataJdo();
dataJdo.setStringVal("tata");
dataJdo.setIntegerVal(1);
PersistenceManager pm = pmf.getPersistenceManager();
try {
System.out.println("Before: " + dataJdo.toString());
pm.makePersistent(dataJdo);
System.out.println("After: " + dataJdo.toString());
} finally {
pm.close();
}
pm = pmf.getPersistenceManager();
dataJdo = (DataJdo) pm.getObjectById(DataJdo.class, 
dataJdo.getId
());
System.out.println("Retrive: " + dataJdo.toString());
pm.close();
}

   // more tests
}

these suggestions can help

--
Petrica Clement Chiriac (Tica2)
Fluxinternet SRL
--~--~-~--~~~---~--~~
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: Datastore Warning: Persistent class has no table in the database

2009-08-30 Thread datanucleus

> @PersistenceAware
> public enum AreaType{
>         TEST;
>
> }

Why not explain why you think an enum needs to be PersistenceAware
(i.e will be updating fields of persistent classes directly) ?

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