About serializable

manual

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps.... Arrays. Miscellaneous types: Enum types and Serializable types (user or system defined). Note : Only ... Proxy Classes Enum Types Serializable Types Entity Classes An entity class ...

 
doc

java.io.Serializable

(Interface of java.ioInterface Serializable)

 
api-jdo

PersistenceCapable.SERIALIZABLE

If jdoFieldFlags for a field includes SERIALIZABLE, then the field is not declared as TRANSIENT.(Static Field of javax.jdo.spi.PersistenceCapable)

 
page

ObjectDB Object Database Features

ObjectDB provides a rich set of features, many of them as the result of supporting the JPA and JDO APIs.... Enum classes Serializable types ... Any other serializable type . ...

 
issue

Error reading UTF string (Serialized Objects in Explorer)

This is the message I get for attached db and this query: ... a problem in reading the pricing field, whose type is serializable ( Money ). Using serializable types is not recommended (embeddable classes should be used ...

 
forum_thread

Is it ok to put list or map of embeddable objects in entity ?

Hi, Is it ok to put list or map of embeddable objects in entity? I mean, for example : @Entity public class Entity_A {     (...)     @Embedded     List<Class_B> bList;     @Embedded     Map<String, Class_C> cMap; (...) } where Class_B and Class_C are annotated as @Embeddable ? In the examples, there is only situation where there is one single instance of embeddable class in entity. And what happens if I do operation like : ... one more question - I have some entities that have my own, serializable classes inside as parameters. When I try to inspect them with ... on Java serialization and instead to define each of these serializable classes also as embeddable. ObjectDB ...

 
forum_thread

Extending model by "common entity"

Hi, I have a question about extending working model with one, common entity, that all other entities will inherit from. For example I have 2 different entities in database with some data:... Entity public class Entity1 implements Serializable { private String val1 ; private String ... Entity public class Entity2 implements Serializable { private String val4 ;   // ...

 
api-jdo

javax.jdo.spi.PersistenceCapable

A class that can be managed by a binary-compatible JDO implementation must implement this interface.(Interface of JDO)

 
forum_thread

Mysterious "Attempt to persist a reference to a non managed instance" error

I've been working with ObjectDB for the past several months, and it's behaved pretty much as expected. I made a few modifications to a working set of classes today, and it's started throwing exceptions at commit time. I've stripped it down to a  set of files that seem to be of trivial complexity, but it's still failing. It involves two entities, Index and Ostrich. The thing to note is that the Index structure is recursive through maps; but that's never caused any problem for me in the past. ... package failing ; import java. io . Serializable ; import javax. persistence . Entity ; ... Entity public class Ostrich implements Serializable { @ Id long id ; public ...

 
api-jdo

javax.jdo.listener.InstanceLifecycleEvent

This is the event class used in life cycle event notifications.(Class of JDO)