Created
May 20, 2015 17:14
-
-
Save sebersole/d1d051361337c24e8c3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SimpleEntity implements ManagedEntity, PersistentAttributeInterceptable, SelfDirtinessTracker, CompositeOwner { | |
private String name; | |
... | |
public String getName() { | |
return this.$$_hibernate_read_name(); | |
} | |
public void setName(String name) { | |
this.$$_hibernate_write_name(name); | |
} | |
public String $$_hibernate_read_name() { | |
if(this.$$_hibernate_getInterceptor() != null) { | |
this.name = (String)this.$$_hibernate_getInterceptor().readObject(this, "name", this.name); | |
} | |
return this.name; | |
} | |
public void $$_hibernate_write_name(String var1) { | |
if(this.name == null || !this.name.equals(var1)) { | |
this.$$_hibernate_trackChange("name"); | |
} | |
String var2 = var1; | |
if(this.$$_hibernate_getInterceptor() != null) { | |
var2 = (String)this.$$_hibernate_getInterceptor().writeObject(this, "name", this.name, var1); | |
} | |
this.name = var2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment