[hibernate - jpa ] good practices and bad practices
- by blow
Hi all, i have some questions about interaction with hibernate.
openSession or getCurrentSession (without jta, thread insted)?
How mix session operations with swing gui? Is good have something like this in a javabean class?
public void actionPerformed(ActionEvent event) {
// session code
}
Can i add methods to my entities that contains hql…