Skip to content

Commit

Permalink
[#317] Call executeUpdate()
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebort committed Oct 21, 2010
1 parent f43bd4e commit 63b1def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/play/db/jpa/JPAPlugin.java
Expand Up @@ -449,7 +449,7 @@ public Long count(List<String> searchFields, String keywords, String where) {
}

public void deleteAll() {
JPA.em().createQuery("delete from " + clazz.getName());
JPA.em().createQuery("delete from " + clazz.getName()).executeUpdate();
}

public List<Model.Property> listProperties() {
Expand Down

0 comments on commit 63b1def

Please sign in to comment.