Home | Schulung | Beratung | Referenzen | Veröffentlichungen | Jobs | Sitemap | Kontakt

Erste Folie | Zurück | Weiter | Letzte FolieGrafikversion | Inhalt | Home

Wie kommt es zu JDO?

...

String sql = "";

int personID = generateID();

sql1 = "INSERT INTO PERSON (ID, NAME) VALUES (" + personID + ", '" + order.customer.name + "'" + ")";

sql2 = "INSERT INTO CUSTOMER (ID, PERSONID, CUSTOMERNO) VALUES (" + customerID + ", " + personID + ", '" + order.customerNo + "'" + ")";

statement.execute(sql);

sql3 = "INSERT INTO ORDER (ID, DOCUMENTID, " + "ORDERNO, SUBJECT, CUSTOMERID) VALUES (" + orderID + ", " + documentID + ", '" + contract.contractNo + "'" + ", '" + contract.subject + "'" + "," + customerID + ")";

...

pm.makePersistent(order);