I am following a tutorial on the Google engine, and the part explaining JDO is done as part of the guestbook. Therefore, when they request persistence (BigTable, I reckon), they are interested in returning all the results.
I am trying to adapt this to display the results for a specific user, but it seems to be having problems.
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()) {
This is part of what I still have, I need to adapt my String request to "where user = user", but every time I get problems.
My team has only a key, user, string and date.
source
share