I have a local application (no JEE server) that shall use postgres at the end.
I'd like to chose Hibernate as my database framework. I'm now creating the persistence.xml, and wonder which transaction-type I should chose: JTA or RESOURCE_LOCAL, or none?
<persistence-unit name="travelport" transaction-type="JTA">
Further I'd like to use the Hibernate EntityManager in my application. Can I have my application manage the transaction itself somehow (any framework)? Or do I always have to open, commit and close the transactions myself when not using an application server?