Using ObjectDB with JDBC (in similar way with JPA 2)


Using JDBC, I can use a String to create the schema of a table:

               "(id INTEGER not NULL, " +
               " first VARCHAR(255), " +
               " last VARCHAR(255), " +
               " age INTEGER, " +
               " PRIMARY KEY ( id ))";
stmt = conn.createStatement();

I want to similarly use a string to create a table BUT with ObjectDB as my database. Can I pair JDBC with ObjectDB to accomplish this? Better yet, can I accomplish this using JPA or JDO with ObjectDB?


To store Registration instances in an ObjectDB database, you need a Registration entity class.

ObjectDB is not a relational database, so you don't have to create tables.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login