
org.frameworkset.hibernate.serial.PersistentList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-plugin-hibernate4 Show documentation
Show all versions of bboss-plugin-hibernate4 Show documentation
hibernate plugin,word/pdf plugin
The newest version!
package org.frameworkset.hibernate.serial;
import org.frameworkset.soa.PreSerial;
import org.hibernate.Hibernate;
import java.util.ArrayList;
import java.util.List;
public class PersistentList implements PreSerial {
private static final String clazz = "org.hibernate.collection.internal.PersistentList";
private static final String vclazz = "java.util.ArrayList";
@Override
public String getClazz() {
// TODO Auto-generated method stub
return clazz;
}
public String getVClazz() {
// TODO Auto-generated method stub
return vclazz;
}
@Override
public List prehandle(List object) {
boolean init = Hibernate.isInitialized(object);
if (init) {
return object;
} else {
return new ArrayList();
}
}
@Override
public List posthandle(List object) {
// TODO Auto-generated method stub
return object;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy