Hello,
I managed it to insert some data with JDO. Also i can update some
variables with the following code (i postet just the relevant,
executed parts of the code):
PersistenceManager pmUserSession = PMF.get().getPersistenceManager();
Transaction txUserSession = pmUserSession.currentTransaction();
txUserSession.begin();
String query = "select from " + JDOsess.class.getName();
Object responce = pmUserSession.newQuery(query).execute();
List<JDOsess> userSessions = (List<JDOsess>) responce;
for(JDOsess session : userSessions){
if(...) ...
session.setU_Times(newTime);
}
txUserSession.commit();
pmUserSession.close();
but when i want to change another variable (later, in an other
function), the changes wont be saved. But there is no exception
thrown :-(
PersistenceManager pmUserSession = PMF.get().getPersistenceManager();
Transaction txUserSession = pmUserSession.currentTransaction();
txUserSession.begin();
session.setU_UserState(2);
txUserSession.commit();
pmUserSession.close();
Any ideas why it works for the first time but don't work the second
time?
Do i have to reload the variable before the second change?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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-web-toolkit?hl=en.