Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- entity.getLazyLoadedCollection();
- ERROR org.hibernate.LazyInitializationException IP127.0.0.1 CV#4c44559c-c576-4732 P#75004 - could not initialize proxy - no Session
- org.hibernate.LazyInitializationException: could not initialize proxy - no Session
- at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167)
- at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
- at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
- at core.model.entities.WorkflowState_$$_javassist_36.getFunctions(WorkflowState_$$_javassist_36.java)
- getSession().merge(entity);
- if (getSession().contains(entity)) {
- getHibernateTemplate().merge(person);
- } else {
- getSession.update(entity);
- }
- Hibernate.initialize(object.getMyLazyCollection());
- if(object.getMyLazyCollection() != null) {
- object.getMyLazyCollection().size(); // forces a collection load
- }
Add Comment
Please, Sign In to add comment