Victor, Your example is a bit abstract, but a general test (e.g., see this code snippet - http://pastebin.com/u6RHWqe6 ) works fine. You might double check that your instances do have the intended content prior to persisting them.
On Sat, Jan 14, 2012 at 8:46 AM, Victor Emanuel < [email protected]> wrote: > I have a class: > > @PersistenceCapable > public class X{ > @Persistent > @Order(extensions = @Extension(vendorName = "datanucleus", key > = "list-ordering", value = "date desc")) > private List<Race> list; > > @Persistent > private Float value; > } > > When I try to make: > > PersistenceManager pm = PMF.get().getPersistenceManager(); > try { > X x = pm.getObjectById(X.class, id); > x.setValue(listObject.getValue().floatValue()); > x.getList().add(listObject); > } finally { > pm.close(); > } > > I'm expecting that in my X object I will add a listValue and set the > value of 'value'. But the result is only adding the value in the list, > ignoring the setting of ghe value! > > Is there anything wrong? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" 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?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
