Hi,

I tried to adapt the sample OJB/JDO/Woody to my auto-incrementation
needs for inserts, but i've got no idea how to proceed. I think both
bean and form should not have any id for employee then
ojbEmployee.insert function should call a class that ask the next id for
next row to insert,but i'm a newbie...

So if somebody's got an idea or did it before...


Thanks (also for my last request!) 

Phil

--------------------------------

What i did, still :
 
1.Added auto-increment in repository.xml for EMPLOYEE table :

<field-descriptor name="id"  column="ID"  jdbc-type="INTEGER"
primarykey="true"  autoincrement="true" />

2.Calling ojbEmployee.insert instead of ojbEmployee.update in
employee.js

3nd. Then i should modify ojbEmployee.insert with some 
AutoIncJdbcKeyGenerator Class, if Sun jdo supports it?

Sure if i remove the employee id from form, bean and java functions,
employee object is not persistence capable anymore :-)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to