Skip to content

Commit

Permalink
[playframework#237] Update EBean version to 2.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
erwan committed Jun 2, 2012
1 parent 40cbf53 commit 47e080a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion framework/project/Build.scala
Expand Up @@ -192,7 +192,7 @@ object PlayBuild extends Build {

"com.google.code.findbugs" % "jsr305" % "2.0.0",

("org.avaje" % "ebean" % "2.7.3" notTransitive())
("org.avaje" % "ebean" % "2.7.5" notTransitive())
.exclude("javax.persistence", "persistence-api")
,

Expand Down
23 changes: 16 additions & 7 deletions framework/src/play/src/main/java/play/db/ebean/Model.java
Expand Up @@ -444,13 +444,6 @@ public RawSql getRawSql() {
return query().getRawSql();
}

/**
* Returns the type of query (List, Set, Map, Bean, rowCount etc).
*/
public Query.Type getType() {
return query().getType();
}

public UseIndex getUseIndex() {
return query().getUseIndex();
}
Expand Down Expand Up @@ -729,6 +722,22 @@ public Query<T> where(com.avaje.ebean.Expression expression) {
public Query<T> where(String addToWhereClause) {
return query().where(addToWhereClause);
}

/**
* Return the total hits matched for a lucene text search query.
*/
@Override
public int getTotalHits() {
return query().getTotalHits();
}

/**
* Execute the select with "for update" which should lock the record "on read"
*/
@Override
public Query<T> setForUpdate(boolean forUpdate) {
return query().setForUpdate(forUpdate);
}

}

Expand Down

0 comments on commit 47e080a

Please sign in to comment.