# ORMAdapter not Serializable

**URL:** <https://forums.visual-paradigm.com/t/ormadapter-not-serializable/9213>\
**Category:** General Questions/Discussions\
**Created:** [November 24, 2006, 5:43pm UTC](https://forums.visual-paradigm.com/t/ormadapter-not-serializable/9213 "2006-11-24T17:43:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-Marie1](https://avatars.discourse-cdn.com/v2/letter/j/57b2e6/32.png) [@Jean-Marie1](https://forums.visual-paradigm.com/u/Jean-Marie1)\
**Post date:** [November 24, 2006, 5:43pm UTC](https://forums.visual-paradigm.com/t/ormadapter-not-serializable/9213/1 "2006-11-24T17:43:56Z")

</div>

Hello,

I am having problems caused by the annonymous inner classes extending AbstractORMAdapter generated by SDE (see code at the end of this message): they are not Serializable. As I store persistent objects into HTTP sessions, exceptions are thrown when the web server tries to serialize sessions. Is there a workaround ? Did I get something wrong ?

Thanks in advance,

Jean-Marie

```auto
org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
 

```

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [November 27, 2006, 7:47pm UTC](https://forums.visual-paradigm.com/t/ormadapter-not-serializable/9213/2 "2006-11-27T19:47:49Z")

</div>

Hi Jean-Marie,

I just sent you an email with the download link of a patch that have this problem fixed. Please try it, and let me know if it works.

Best regards,  
Jick

---

<div class="post-metadata">

**Author:** ![Jean-Marie1](https://avatars.discourse-cdn.com/v2/letter/j/57b2e6/32.png) [@Jean-Marie1](https://forums.visual-paradigm.com/u/Jean-Marie1)\
**Post date:** [December 6, 2006, 3:00pm UTC](https://forums.visual-paradigm.com/t/ormadapter-not-serializable/9213/3 "2006-12-06T15:00:28Z")

</div>

Hello Jick,

Thank you for this fix, once again I’m very satisfied with Visual Paradigm as well as the reactivity of the technical support.

Best regards,

Jean-Marie

---

<div class="post-metadata">

**Author:** ![Jick](https://avatars.discourse-cdn.com/v2/letter/j/ea666f/32.png) [@Jick](https://forums.visual-paradigm.com/u/Jick)\
**Post date:** [December 6, 2006, 5:15pm UTC](https://forums.visual-paradigm.com/t/ormadapter-not-serializable/9213/4 "2006-12-06T17:15:30Z")

</div>

hi Jean-Marie,

You are welcome. I think you may try with the new version, which also have this problem fixed.

Best regards,  
Jick
