Hello *
I have to implement the following program logic:
Code:
final Session session = sessionFactory.getCurrentSession();
session.beginTransaction();
txid = /* get new unique id from Hibernate */
resp = sendSoapRequest(txid, ....);
processSoapResponse(resp);
Tx aTx = new Tx();
aTx.setId(txid);
...
session.save(aTx);
session.getTransaction().commit();
Now, my question is: do I have to implement this
get new unique id from Hibernate by myself or can I make use of the Hibernate key generators?
Thanks for help!