wesley tanaka

java.lang.IllegalArgumentException: transactions on multiple entity groups only allowed in High Replication applications

()

If you run a Java Google App Engine unit test with a vanilla LocalDatastoreServiceTestConfig instance, you will run into the error java.lang.IllegalArgumentException: transactions on multiple entity groups only allowed in High Replication applications:

Keys-only query using JDO in Google App Engine Java

()

To turn a Java Google App Engine JDO query into a keys-only query, call setResult(String) on it to specify that only the @PrimaryKey column should be returned.  JDO will convert this into a keys-only query on the datastore.

For example, if your entity class looks like this:

public class YourEntity {
  @PrimaryKey
  private String name;
// ...

I love you

()

Call a JSP from a servlet

()

If you want to include/execute a .jsp file from within a servlet, you can use the forward() method of the request dispatcher.

Dog Grooming Shop

Roppongi, Tokyo, Japan

Fox statue

Fushimi Inari Taisha Shrine, Kyoto, Japan

Peek-a-boo

()

Move Android SearchView Icon inside the text field

()

The Android SearchView, which allows you to display a search UI embedded inside the ActionBar at the top of your activity, can sometimes display a magnifying glass icon outside and to the left of the EditText like this:

and other times display the magnifying glass icon inside the EditText like this, much more like the search dialog:

Happy and Sad

()

Avocado

()
Syndicate content
by Wesley Tanaka