I've been following the google app engine tutorial and the part that explains JDO is done under the basis of a guestbook. So when they query the persistence (BigTable i believe) they are interested in returning all the results.
I'm trying to adapt this for showing the results for the specific user but seem to be having trouble with it.
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
if(user != null) {
PersistenceManager pm = PerManFac.get().getPersistenceManager();
String query = "select * from " + Team.class.getName();
List<Team> teamList = (List<Team>) pm.newQuery(query).execute();
if(teamList.isEmpty()) {
Thats part of what i have so far, i need to adapt my query String to be 'where User = user' but i get issues each time.
My Team object only holds Key, User, a String and Date.