What has worked for me was to change the file (e.g. add a space, delete the space, save the file) containing the Entity definition—this causes the enhancer to enhance the Entity in question. Let me know if this works for you.
On Apr 15, 3:56 pm, Vik <[email protected]> wrote: > Hie > > I have a Entity class Country. > > The very first time when i am running my app this is not created in > datastore. > So my code: > try{ > String query = "select from " + BloodDonorCountryList.class.getName() > + > " where countryName == \"" + country.toLowerCase() + "\""; > > log.info("Query is:" + query); > > List<BloodDonorCountryList> countryList = > (List<BloodDonorCountryList>) pm.newQuery(query).execute(); > log.info("returning: :::::::::::::::::::::::::"); > if(countryList.isEmpty()) > return null; > return countryList; > }catch(Exception e){ > log.severe("Method: addBloodDonorCountry"); > log.severe(e.getClass().getName() + " " + e.getMessage()); > throw new CommandExecuteException("Problem while querying country > list."); > } > > throws exception saying: > EVERE: javax.jdo.JDOUserException Persistent class "Class > vik.sakshum.Country does not seem to have been enhanced. You may want to > rerun the enhancer and check for errors in the output." has no table in the > database, but the operation requires it. Please check the specification of > the MetaData for this class. > > So how to avoid this exception? Or in other words how to detect if this is > the case. > > Thankx and Regards > > Vik > Founderwww.sakshum.comwww.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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
