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)

 
forum_thread

Persist error @ManyToMany how to define correct entities relationships

I have Product entities containing a list of Category enties. Each product can have multiple Category but all sue the same limited set of Category entities. There is not changes made to Category from Product. The category ID is taken from the webservice Object ID (unique too). ...   public class Product implements Serializable {   @ Id @ GeneratedValue ...   public class Category implements Serializable {   @ Id   private ...

 
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 . ...

 
forum_thread

Need help to make this test work and define proper annotations for entities Lists

Hi, I can't get this simple test case to work, i know it is probably due to the lack of proper annotations on entities list, could anyone help me to define them? NB in this test case I didn't set all entities methods for the sake of clarity, also in actual application no field are public nor static and no entity is static.    ... java. io . File ; import java. io . Serializable ; import java. util . List ; import javax. ... ;   public class TestODB implements Serializable {   public static void main ( ...

 
forum_thread

Field not persisted in abstract class with two level of nesting

Hi, I have a field (embedded TZ1) which is not persisted in class MHD1 (TZ1  extends AS and AS extends ATT). But it seems to work fine when I skip the AS and make TZ2 extend directly from ATT. Here is an example code MHD1 ... package BUG2 ;   import java. io . Serializable ; import javax. persistence . Entity ; ... @ Entity public class MHD1 implements Serializable { private TZ1 timezone ; public MHD1 ...

 
forum_thread

openejb jpa jaas module

    hello , i've finished jpa jaas module. Here it is :   package com.bayner.auth; import com.bayner.jpa.Principals; import com.bayner.jpa.UserInfo; import com.bayner.jpa.UserPrincipal; ... javax. persistence . *; import java. io . Serializable ; import java. security . Principal ;   ... ) public class Principals implements Serializable,Principal {   private String principalName ...

 
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 ...