0
檢索Postgres的自動生成主鍵ActiveJDBC如何使用ActiveJDBC
如果我在表中的serial primary key
有列名id
Employee e = new Employee();
e.set("name", "John");
e.set("age", 43);
e.saveIt();
如何可能保存記錄後檢索? 我想以該員工插入一個地址檢索:
Address d = new Address();
d.set("employee_id", ???); // what to do here?
d.set("address", address);
d.saveIt();