Hi:

Please provide the OJB version you use. AFAIK, it was already fixed for
non JDO API's.

Best Regards,

Antonio Gallardo

On Lun, 9 de Mayo de 2005, 18:15, Alessandro Vincelli dijo:
> I use this simple code to retrieve row,
> but after this code the db sequence of Utenti table is autoincrement.
> Why?
> Thanks,Ale
>
>
>      //1. Get the PersistenceManager
>         PersistenceManager persistenceManager =
> jdo.getPersistenceManager();
>         Utenti e = new Utenti();
>         e.setId_utente(bean.getId_utente());
>         PersistenceBroker broker =
> PersistenceBrokerFactory.defaultPersistenceBroker();
>         Identity oid = new Identity(e, broker);
>         Utenti b = new Utenti();
>         //    2. start transaction
>         persistenceManager.currentTransaction().begin();
>         // 3. Get the Object based on the primary key
>         b = (Utenti) persistenceManager.getObjectById(oid, false);
>         // 4. Copy data to bean
>         copyData(b, bean);
>         // 5. End transaction
>         persistenceManager.currentTransaction().commit();
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to