bmelloni wrote:
1) Since I am not auto-generating keys as normal, is <generator class="assigned" /> the right clause in the HBM file?
Yes.
bmelloni wrote:
2) In the method call, should I be doing session.save(obj) or session.saveOrUpdate(obj)?
This might help you. Probably there is even more information in the FAQ or at least in the documentation.
http://www.hibernate.org/116.html#A19bmelloni wrote:
3) It is supposed to be in a transaction, right?
Well, transactions are nice. If you don't use them, you won't be able to profit from their advantages. :)
Best regards
Sven