Open ghost opened 12 years ago
Hi Ali, your code sample looks good to me (assuming that you did inject the sessionFactory properly as in my sample application). So it might be that you're having issues in your Oracle datasource configuration. Sorry I can't help you on that specific point but I'm sure you'll find plenty of examples on Internet. You can also ask on the Spring forums here: http://forum.springsource.org/forumdisplay.php?27-Data
Cheers, Michael.
So how does one make this example work when it is not being run as a JUnit test? I can't get the transactional part to work outside of JUnit and always get a org.hibernate.HibernateException: No Session found for current thread.
so same
i have open session in oracle and session limit problem when i use getSession.openSession();//session limit in oracle and sessionFactory.getCurrentSession();//have problem in that session not exist in thread i config @transcation by i get not open session in lazy loading (session close)
i dont know how do it plz help meeee plzzzzz
@Autowired private SessionFactory sessionFactory;