
org.hibernate.examples.model.AbstractPersistentObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-examples Show documentation
Show all versions of hibernate-examples Show documentation
Hibernate 2nd level cache using Redis examples.
The newest version!
package org.hibernate.examples.model;
import org.hibernate.examples.utils.ToStringHelper;
/**
* 영구 저장소에 저장 여부를 나타내는 클래스입니다.
*
* @author 배성혁 [email protected]
* @since 2013. 11. 27. 오후 2:37
*/
public abstract class AbstractPersistentObject extends AbstractValueObject implements PersistentObject {
private boolean persisted;
@Override
public boolean isPersisted() {
return persisted;
}
protected void setPersisted(Boolean v) {
persisted = v;
}
@Override
public void onSave() {
setPersisted(true);
}
@Override
public void onLoad() {
setPersisted(true);
}
@Override
public ToStringHelper buildStringHelper() {
return super.buildStringHelper()
.add("persisted", persisted);
}
private static final long serialVersionUID = -1668910261730798160L;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy