Skip to content

Commit

Permalink
[#261] Fix GenericModel.merge()
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebort committed Oct 11, 2010
1 parent 6f2937a commit 62c805d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions framework/src/play/db/jpa/GenericModel.java
Expand Up @@ -185,8 +185,7 @@ public <T extends JPABase> T refresh() {
* Merge this object to obtain a managed entity (usefull when the object comes from the Cache).
*/
public <T extends JPABase> T merge() {
em().merge(this);
return (T) this;
return (T)em().merge(this);
}

/**
Expand Down
3 changes: 3 additions & 0 deletions framework/src/play/db/jpa/JPASupport.java
@@ -1,5 +1,8 @@
package play.db.jpa;

/**
* Use play.db.jpa.GenericModel insteads
*/
@Deprecated
public class JPASupport extends GenericModel {

Expand Down

0 comments on commit 62c805d

Please sign in to comment.