jpa on a Desktop SWING Application

后端 未结 4 1063
庸人自扰
庸人自扰 2021-01-06 03:02

I\'m developping a mono user desktop application using SWING. I had a little experience with this kind of application on which i used the java.sql api and figured out that i

4条回答
  •  我在风中等你
    2021-01-06 03:42

    have you looked at http://docs.jboss.org/hibernate/core/4.0/manual/en-US/html/transactions.html#transactions-basics-issues. I think it would be wise to read the documentation there before proceeding using sessions object for too much time. I guess the better approach is to use the session to do a simple unit of work (for example : the CRUD operations).

    Hope it helps!!.

    Greetings.

提交回复
热议问题