db4o Developer Community

db4o open source object database, native to Java and .NET
Welcome to db4o Developer Community Sign in | Join

can you save "List - ArrayList"-subObjects in db?

  •  03-05-2008, 12:41 PM

    can you save "List - ArrayList"-subObjects in db?

    is ist possible in  db4o 1.2 to save an Object with a list of subObjects with "....db.set(object);..." and get it with "....ObjectSet result=db.get(proto);..." ???

     thanks for the great work ;)....

     

    sample....

     

    public class object  {

    .... 

    private List<MyObject> NAME = new ArrayList<MyObject>();

    ..... 

     

    public class MyObject {

    .... 

    private List<MyObject2> NAME = new ArrayList<MyObject2>();

     ....

     

    public class MyObject2 {

    .... 

    Filed under:
View Complete Thread