Re: GWT Editor: select calls twice before update

2011-12-13 Thread Jesse Hutton
To add to what Thomas said, if you use EntityManager#find(Class entityClass, Object primaryKey), and the entity already exists in the current persistence context, your JPA implementation will not hit the db again (check the javadoc in javax.persistence.EntityManager). So, if you then use request sc

Re: GWT Editor: select calls twice before update

2011-12-11 Thread Thomas Broyer
First, this has nothing to do with the Editor framework, but with RequestFactory. If you're not using a Locator, or you're not overriding the isLive() method of your Locator, then this is the expected behavior: this is how RequestFactory determines whether an entity is still "alive" before send

GWT Editor: select calls twice before update

2011-12-11 Thread John99
During update the entity with Editor framework select from db calls twice. May be it's not a problem but a feature of Editor framework? Here is a code snippet: public class UserActivity extends BasicActivity { ... interface Driver extends RequestFactoryEditorDriver { } private UserProxy use