Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Salto-db generator

Howard Ralstone
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using the Salto-db generator with the EJB3AndHibernateDao plugin to generate DAOs and POJOs. The generation works fine but when I try to save an object using the example code it does not persist.

ex.: DAOFactory.DEFAULT.buildUserDAO().save(user);

However, I've found that if I begin a transaction, call the same code, and then commit the transaction, the object is persisted.

Anybody know what else I need to do to avoid directly using the transaction unless I really need to?


  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic