ObjectDB ObjectDB

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

#1

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

String sql = "CREATE TABLE REGISTRATION " +
               "(id INTEGER not NULL, " +
               " first VARCHAR(255), " +
               " last VARCHAR(255), " +
               " age INTEGER, " +
               " PRIMARY KEY ( id ))";
stmt = conn.createStatement();
stmt.executeUpdate(sql);

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?

edit
delete
#2

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

Reply

To post on this website please sign in.