Permalink
Browse files

[#935] Fixes Blob deepCopy. Bug found while trying to audit a Blob ty…

…pe using Envers.
  • Loading branch information...
1 parent 5a5d77e commit 8f51ed77be567ca71829a5614f63ebbf57750dd3 Olivier Huber committed with mbknor Jun 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/src/play/db/jpa/Blob.java
View
2 framework/src/play/db/jpa/Blob.java
@@ -106,7 +106,7 @@ public Object deepCopy(Object o) throws HibernateException {
if(o == null) {
return null;
}
- return new Blob(this.UUID, this.type);
+ return new Blob(((Blob)o).UUID, ((Blob)o).type);
}
public boolean isMutable() {

0 comments on commit 8f51ed7

Please sign in to comment.