[appengine-java] Re: Cannot retrieve value of the newly created attribute in a JDO

2009-11-07 Thread delightwjk

I have fixed this problem. Thanks.

On Nov 6, 11:05 am, delightwjk delight@gmail.com wrote:
 Thank you Jorge,

 I checked the document you mentioned, but i'm still not sure what is
 the reason of my issue. I added a field in JDO (Boolean successFlag),
 and stored several entities in datastore, I was able to see the
 entities with successFlag property from admin console Datastore -
 Data Viewer, and the values of successFlag properties were correct.
 The entities have the property successFlag with correct value, and the
 JDO class has the corresponding field, but why I could not retrieve
 the values of successFlag via JDO?

 Jiakuan

 On Nov 5, 9:57 pm, Jorge athenas...@gmail.com wrote:

  You may want to check the rules that apply in this case as documented
  at the bottom of this page::
     http://code.google.com/appengine/docs/java/datastore/dataclasses.html

  Jorge Gonzalez

  On Nov 4, 8:06 am, delightwjk delight@gmail.com wrote:

   Hi All,

   I created a JDO class, which had some attributes, and I created some
   CRUD operations, all of them worked correctly.

   Then I added a new attribute in the JDO class, and then set value to
   it and persisted it as usual when I executed CRUD operations. The
   problem is that I cannot retrieve the value of the new attribute in
   program, the value is always null. But when I check the value in
   Datastore - Data Viewer, the value is correct. So i'm wondering
   why it cannot be retrieved in application. Is there some cache
   mechanism?

   Thanks in advance!
   Jiakuan
--~--~-~--~~~---~--~~
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] Delete without getting, using JDO

2009-11-07 Thread Peter Recore

Is there a way to delete an entity without having to fetch it from the
datastore first?
Ideally, there would be a deleteObjectById analogue to getObjectById
on PersistenceManager.

The closest I can think of is using Query.deletePersistentAll() and
specifying a keys only query, but I can't tell if that is going to
fetch the entity before deleting it.

-peter
--~--~-~--~~~---~--~~
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: the question in ubuntu9.10 and eclipse 3.5

2009-11-07 Thread James Young
Yes, they work completely,
I advise you use ubuntu strongly.
If you fear something, you can use wubi,

o(∩_∩)o.Enjoy it.


On Sat, Nov 7, 2009 at 10:41 AM, Rick dorb...@gmail.com wrote:


 Did you get Ubuntu 9.10, Eclipse 3.5 and App Engine to work
 completely? I was hoping to use Ubuntu.

 On Nov 6, 5:45 am, James Young zhurizh...@gmail.com wrote:
  HI
 
  Thank you very much, matthieu!
 
  Best regards!
 
  On Fri, Nov 6, 2009 at 4:32 PM, matthieu vidal m...@matthieu-vidal.com
 wrote:
 
 
 
 
 
   Hi
 
   Have you seen this workaround about Eclipse  3.6 and Ubuntu 9.10 ?
 
   You have to set this env variable before lauching eclipse
 
   export GDK_NATIVE_WINDOWS=1
 
   see here :
  http://www.norio.be/blog/2009/10/problems-eclipse-buttons-ubuntu-910
 
   Regards
 


--~--~-~--~~~---~--~~
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] why my app on GAE first access is so slow

2009-11-07 Thread zhiw...@gmail.com

i deploy my app on gae.
every time i access it , it may take 10~20 second to open the page on
the first time,
then i access other link in my app or simply refresh it, it is
normal ,very fast only take few second.

but then i stop access the page,  after some time,  i access the page
again, it will also like what i descirbe before;


it is as if every time my first access, gae restart the server ,reinit
the jsp file .

does someone else met the same like  me  ??
--~--~-~--~~~---~--~~
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: why my app on GAE first access is so slow

2009-11-07 Thread Prashant
yes, your guess is right. if your app is inactive then app engine will
remove your app servlets from memory and reloads from datastore (or wherever
it is stored) when you access it first time.

--~--~-~--~~~---~--~~
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: java doubt : is there any way to get class instance from class' qualified name?

2009-11-07 Thread tsp...@tangiblesoftware.com

yes it can be done. Search for reflections and java on Google and
follow the sun tutorial.

Tim

On Nov 7, 9:53 am, Prashant antsh...@gmail.com wrote:
 Hi,

 Suppose, I have a list of Qualified Names of a set of classes (say, in a
 property or text file) and I want to call a method (pre-decided), from one
 of the listed class, when required. Is there any way to do that? My
 knowledge of java says NO, if you have any idea please reply.

 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: java doubt : is there any way to get class instance from class' qualified name?

2009-11-07 Thread Prashant
got it. thanks a ton...

--~--~-~--~~~---~--~~
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] once per deployment?

2009-11-07 Thread Prashant
Hi,

I want to run a piece of code only once, every time I deploy a new version.
How do I do that?

--~--~-~--~~~---~--~~
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: Delete without getting, using JDO

2009-11-07 Thread Rusty Wright

Have a look at the Query class; you can use the id/key in the query.  
http://xrl.in/3m1e  http://xrl.in/3m1f


Peter Recore wrote:
 Is there a way to delete an entity without having to fetch it from the
 datastore first?
 Ideally, there would be a deleteObjectById analogue to getObjectById
 on PersistenceManager.
 
 The closest I can think of is using Query.deletePersistentAll() and
 specifying a keys only query, but I can't tell if that is going to
 fetch the entity before deleting it.
 
 -peter
  

--~--~-~--~~~---~--~~
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: Delete without getting, using JDO

2009-11-07 Thread Esteban Ignacio Masoero
And you can also look here:
http://code.google.com/intl/en/appengine/docs/java/datastore/queriesandindexes.html#Delete_By_Query

To google guys: By the way, there's a typo in the last link of that
paragraph, which doesn't have an anchor.

On Sat, Nov 7, 2009 at 3:29 PM, Rusty Wright rwright.li...@gmail.comwrote:


 Have a look at the Query class; you can use the id/key in the query.
 http://xrl.in/3m1e  http://xrl.in/3m1f


 Peter Recore wrote:
  Is there a way to delete an entity without having to fetch it from the
  datastore first?
  Ideally, there would be a deleteObjectById analogue to getObjectById
  on PersistenceManager.
 
  The closest I can think of is using Query.deletePersistentAll() and
  specifying a keys only query, but I can't tell if that is going to
  fetch the entity before deleting it.
 
  -peter
  

 


--~--~-~--~~~---~--~~
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] free GWT plugin for eclipse

2009-11-07 Thread Vik
hie

anyone aware of a free WYSWYG plugin for GWT development for eclipse?

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] Recommendations for GWT +GAE

2009-11-07 Thread Vik
Hie

I am a newbie in GWT and so very much confused for what to use for
desigining my ui. I mean should i use the widgets comes with GWT or other
open source libs available.

Few things:
1. Please suggest which is compatible with GAE as my APP is gonna be on GAE
only.
2. Right now I do not have very high-fi or a super cool UI requirements but
definitely then one which has great widgets and does not easily break GAE
free app file limits
will be great for me to start with.

Please advise

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] Re: Recommendations for GWT +GAE

2009-11-07 Thread Roy Smith
I think you'll get better answers in the GWT group
http://groups.google.com/group/google-web-toolkit?hl=en



On Sat, Nov 7, 2009 at 7:25 PM, Vik vik@gmail.com wrote:

 Hie

 I am a newbie in GWT and so very much confused for what to use for
 desigining my ui. I mean should i use the widgets comes with GWT or other
 open source libs available.

 Few things:
 1. Please suggest which is compatible with GAE as my APP is gonna be on GAE
 only.
 2. Right now I do not have very high-fi or a super cool UI requirements but
 definitely then one which has great widgets and does not easily break GAE
 free app file limits
 will be great for me to start with.

 Please advise

 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] Re: why my app on GAE first access is so slow

2009-11-07 Thread Joseph Stano

I have the same problem with my grails app.  GAE is an exciting
concept but this issue is so bad that I'm going to seek a different
service to host my app.  GAE+grails is too new at this point for an
actual grails-based production site.

On 11/7/09, m seleron seler...@gmail.com wrote:

 Hi

 ServletContextListener I do know the approximate time of use.

 example
  ServletContextListener#contextInitialized Been called from time to be
 called doPost/doGet.
  When I called to check ServletContextListener#contextDestoryed.

 


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

2009-11-07 Thread black_13

Can the batik library for svg be used with the GAE java?
regards,
black_13

--~--~-~--~~~---~--~~
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 Data Store using JDO Query

2009-11-07 Thread Java Java


Can you please any one help me.I am using Good Data store in my
application. when i try to write the query in JDO like this
 select from  + Address.class.getName()+ where designation==+search
+ || suburb==+suburb



It is not working and display the error message in console :

06/11/2009 11:42:59 PM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: /addressInfo
org.datanucleus.store.appengine.query.DatastoreQuery
$UnsupportedDatastoreOperatorException: Problem with query SELECT
FROM com.matchmaking.Address WHERE designation=='doc' || suburb=='':
App Engine datastore does not support operator  OR
at
org.datanucleus.store.appengine.query.DatastoreQuery.checkForUnsupportedOperator
(DatastoreQuery.java:1197)
at org.datanucleus.store.appengine.query.DatastoreQuery.addExpression
(DatastoreQuery.java:706)
at org.datanucleus.store.appengine.query.DatastoreQuery.addFilters
(DatastoreQuery.java:663)
at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute
(DatastoreQuery.java:214)
at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute
(JDOQLQuery.java:84)
at org.datanucleus.store.query.Query.executeQuery(Query.java:1489)
at org.datanucleus.store.query.Query.executeWithArray(Query.java:
1371)
at org.datanucleus.store.query.Query.execute(Query.java:1344)
at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:221)
at com.matchmaking.ContactDAOImpl.listContacts(ContactDAOImpl.java:
29)
at com.matchmaking.AddressInfo.listContacts(AddressInfo.java:174)
at com.matchmaking.AddressInfo.doPost(AddressInfo.java:103)
at com.matchmaking.AddressInfo.doGet(AddressInfo.java:28)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:342)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:830)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)








--~--~-~--~~~---~--~~
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: receiving mail demo

2009-11-07 Thread Dom Derrien

Same issue: what I expected to be of type Multipart is of type
ByteArrayInputStream...

public static String getText(Part message) throws
MessagingException, IOException {
Object content = message.getContent();
if (message.isMimeType(text/*)) {
return (String) content;
}
if (message != null  message.isMimeType(multipart/*)) {
if (!content instanceof Multipart) {
// *** This stream contains the non parsed multipart
version ! ***
// *** content instanceof ByteArrayInputStream ***
return ;
}
Multipart multipart = (Multipart) content;
for(int i = 0; i  multipart.getCount(); i++) {
Part part = multipart.getBodyPart(i);
String text = getText(part);
if (!.equals(text)) {
return text;
}
}
}
return ;
}

Any hint?

On Oct 23, 9:29 pm, Kyle Roche k...@appirio.com wrote:
 Same here. Started a few threads on it. No replies yet.

 Sent from my iPhone

 On Oct 23, 2009, at 11:04 AM, vs ven...@gmail.com wrote:



  I'm  having the same issue  Can someone please help me with this?

  On Oct 19, 12:44 pm, Prashant antsh...@gmail.com wrote:
  yes, every thing is working fine except that I am not able to fetch  
  message
  body in suitable format.

--~--~-~--~~~---~--~~
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] ability to implement queue or wrapper to queue with an internal latch

2009-11-07 Thread Nichole

Hello,  Thanks for use of the app engine!   I'm wondering if there are
future plans to implement something like the ability to use a
concurrent count down latch with a wrapper to or within a queue
implementation?  It would be nice to be able to set a condition upon
which multiple processors operating on the same task are done and the
next in a sequence of tasks can be started. I'm implementing this
in other ways currently...

--~--~-~--~~~---~--~~
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: Delete without getting, using JDO

2009-11-07 Thread LUAI KASSAR
You can use DatastoreService.delete(Key...)
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html#delete(com.google.appengine.api.datastore.Key...)

On Sat, Nov 7, 2009 at 11:05 AM, Peter Recore peterrec...@gmail.com wrote:


 Is there a way to delete an entity without having to fetch it from the
 datastore first?
 Ideally, there would be a deleteObjectById analogue to getObjectById
 on PersistenceManager.

 The closest I can think of is using Query.deletePersistentAll() and
 specifying a keys only query, but I can't tell if that is going to
 fetch the entity before deleting it.

 -peter
 


--~--~-~--~~~---~--~~
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: why my app on GAE first access is so slow

2009-11-07 Thread zhiw...@gmail.com

yes, i think so.  GAE is an exciting  concept but this issue is so
bad.
if the app is an official  business app, nobody can tolerate the first
time access, it is too slow

On Nov 8, 7:00 am, Joseph Stano joseph.st...@gmail.com wrote:
 I have the same problem with my grails app.  GAE is an exciting
 concept but this issue is so bad that I'm going to seek a different
 service to host my app.  GAE+grails is too new at this point for an
 actual grails-based production site.

 On 11/7/09, m seleron seler...@gmail.com wrote:





  Hi

  ServletContextListener I do know the approximate time of use.

  example
   ServletContextListener#contextInitialized Been called from time to be
  called doPost/doGet.
   When I called to check ServletContextListener#contextDestoryed.
--~--~-~--~~~---~--~~
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: Which datastore exceptions are appropriate for Re-try

2009-11-07 Thread WSouza

ApiProxy.UnknownException (sometimes)

On Nov 6, 5:22 pm, Diana Cruise diana.l.cru...@gmail.com wrote:
 There are only 5 exceptions documented for the datastore at the link
 below:

 http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...

 From the descriptions, it appears only 2 of 5 are conditions where a
 re-try may succeed.  They are:

 DatastoreFailureException
 DatastoreTimeoutException

 Can anyone confirm from their experience that these are the only
 appropriate to re-try a transaction?

 For example, when you hit the 30s timeout limit I assume the timeout
 exception above is triggered.  Or, what if your transaction fails due
 to another update in-progress on the same entity group...what
 exception gets thrown for that?  Clearly, you would want to re-try in
 that case!

 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: Problem with Constraints (JPA + grails)

2009-11-07 Thread aldrinm

You may need to call the validate() method on the domain instance.

On Nov 7, 3:26 am, Jeremiah Elliott jelli...@integrityemr.com wrote:
 I am working on a project that is evaluating the use of grails and gae. We
 are unable to specify constraints that are actually enforced.

 We have tried a grails style like:
 static constraints = {
 id(visible:false)
 userName(blank: false)
  firstName(blank: false)
 middleName(blank:false, nullable:false)
 lastName(blank: false)
  }

 and annotations such as:
 @Basic(optional = false)
 �...@column(nullable = false)

 but either way we can insert data that should not be allowed. In particular
 we are trying to specify that a field can not be null or empty.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---