Hi there, 
I'm working with POJOs and version 2.1-rc1

I have these classes :

public class Class1 {
    private String name;
    
    @Embedded
    private Class2 class2;

    /* empty constructor, getters and setters */
}

public class Class2 {
    private String name;

    /* empty constructor, getters and setters */
}

And after I open the database, I register these two classes :

. . . 
db.getEntityManager().registerEntityClass(Class1.class);
db.getEntityManager().registerEntityClass(Class2.class);

When I save an object of type "Class1", it's all good, but an empty 
type (with 0 record) "Class2" is created.

Is there a way to avoid the creation of this empty type "Class2" ? because 
I will always use "Class2" as an embedded type in "Class1"

thanks !

-- 

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