Good morning,
according to the documentation 
(http://orientdb.com/docs/2.0/orientdb.wiki/Object-2-Record-Java-Binding.html#pojo-binding)
 
orientdb "during read/write from/to the record" should skip serialization 
for the fields that:


   1. have the transient modifier
   2. have the static modifier,
   3. haven't getters and setters
   4. are set with anonymous class types

I have a Pojo with a property injected via guice that is not in the package 
of the registered entities :
 
public class ECredentials{


    @Transient
    private ICredentialRepository repoCredential;


    protected ECredentials(){


    }


    @Inject
    public ECredentials(ICredentialRepository repoCredential){
        this.repoCredential = repoCredential;
    }


}



 I've annotated the property with 
@Transient (org.springframework.data.annotation.Transient), make it private 
with no getter or setter but when I try to persist it, I receive: 

com.orientechnologies.orient.core.exception.OSerializationException: Linked 
type [XXX] cannot be serialized because is not part of registered entities.

What I'm missing?

Thank you

Giuseppe

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to