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

2010-03-13 Thread David Fuelling
I get this issue pretty often too, although my experience is that you
likely have an issue with one of your entities (sometimes your entity
can be properly coded, but there could be a fluke with how DataNucleus
+GAE interpret a particular feature/annotation, especially with
JPA).

For example, I had an entity that would fail DataNucleus validation at
first, but when I would do a Clean All+Auto Build, the Datanucleus
error would go away until some other class (any java class) was re-
compiled.  I ended up discovering this by iteratively removing JPA
features from my Entity one at a time (@OneToOne relationships, etc)
until the this class not enhanced errors went away).  Eventually I
was able to nail down that I was either annotating something
incorrectly or DataNucleus/GAE didn't support a particular feature, or
in one case an actual bug.

Not exactly a clear-cut answer, but that's the path I took.

How complex are your entities?

david

On Mar 11, 7:21 pm, Sekhar sek...@allurefx.com wrote:
 I'm using the Eclipse Google plugin, and every once in a while after a
 build I get the dreaded this class is not enhanced! errors for all
 my entities (even when I don't edit any of them). Any idea why this
 is? If I touch the files, they get built/enhanced again fine, but this
 is getting to be a real annoyance. I'd appreciate any pointers you can
 give!

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



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

2010-03-13 Thread Sekhar
They aren't that complex, and I never really got any compile-time
errors (which I think you are referring to) - all the issues are run-
time. Anyway, I went ahead and limited the ORM compiles to just the
subdirectory that has the entities (using the Eclipse GAE option).
Hopefully that'll fix the errors; will report back if it doesn't.

On Mar 13, 8:59 am, David Fuelling sappe...@gmail.com wrote:
 I get this issue pretty often too, although my experience is that you
 likely have an issue with one of your entities (sometimes your entity
 can be properly coded, but there could be a fluke with how DataNucleus
 +GAE interpret a particular feature/annotation, especially with
 JPA).

 For example, I had an entity that would fail DataNucleus validation at
 first, but when I would do a Clean All+Auto Build, the Datanucleus
 error would go away until some other class (any java class) was re-
 compiled.  I ended up discovering this by iteratively removing JPA
 features from my Entity one at a time (@OneToOne relationships, etc)
 until the this class not enhanced errors went away).  Eventually I
 was able to nail down that I was either annotating something
 incorrectly or DataNucleus/GAE didn't support a particular feature, or
 in one case an actual bug.

 Not exactly a clear-cut answer, but that's the path I took.

 How complex are your entities?

 david

 On Mar 11, 7:21 pm, Sekhar sek...@allurefx.com wrote:



  I'm using the Eclipse Google plugin, and every once in a while after a
  build I get the dreaded this class is not enhanced! errors for all
  my entities (even when I don't edit any of them). Any idea why this
  is? If I touch the files, they get built/enhanced again fine, but this
  is getting to be a real annoyance. I'd appreciate any pointers you can
  give!

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[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 plugin to use ...

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



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

2010-03-12 Thread thierry LE CONNIAT
Hi,
I had this problem, and after try to clean your project and rebuild
it .
bye

On 12 mar, 19:34, Rajeev Dayal rda...@google.com wrote:
 Hi there,

 Can you provide the full error message that you're seeing when you get this
 error?

 Also, can you navigate to the Error Log (Window - Show View - Error Log)
 and see if there are any errors related to this problem listed there?

 Thanks,
 Rajeev



 On Thu, Mar 11, 2010 at 2:21 PM, Sekhar sek...@allurefx.com wrote:
  I'm using the Eclipse Google plugin, and every once in a while after a
  build I get the dreaded this class is not enhanced! errors for all
  my entities (even when I don't edit any of them). Any idea why this
  is? If I touch the files, they get built/enhanced again fine, but this
  is getting to be a real annoyance. I'd appreciate any pointers you can
  give!

  --
  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...@googlegroups.comgoogle-appengine-java%2B 
  unsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.