I've found the answer HERE.
It seems that different drivers support different versions of prepareStatement() for generated keys.
So, you may have to choose one of these prepareStatement()...
Type: Posts; User: ranma172; Keyword(s):
I've found the answer HERE.
It seems that different drivers support different versions of prepareStatement() for generated keys.
So, you may have to choose one of these prepareStatement()...
But, if you are using the MVC in a desktop app, how do you use lazy objects from the view? You can't use OpenSessionInViewFilter. Is there any Swing version of that filter? Or it doesn't make sense?
Well, now I'm just learning how to use it.
Anyway, it could be helpful. Some applications are better off with JDBC than with JPA or Hibernate.
Any reason why Spring doesn't include that...
Yes, it's a bad idea to put business code in views (JSP), not to mention direct calls to DAO's!
We always have something to learn. :)
Hello,
I'm building a standalone app (ie. a main() method) that uses Spring+Hibernate.
Now I'm getting the dreaded LazyInitializationException but I can't use the OpenSessionInViewFilter since...
any ideas? Thanks!
I suppose HibernateTemplate (and HibernateDaoSupport) closes the session. It makes sense.
In fact, the OpenSessionInViewFilter is for leaving sessions opened during view rendering, in order to...
Spring 2.5.5 ships with Hibernate 3.3.0.CR1 (although filename is just hibernate3.jar), so I suppose they just put the latest production release available.
So, I think it's safe to get the latest...
Hello,
I'd like to retrieve autogenerated keys using JdbcTemplate. I found a way to do it, but I would like to find a more elegant/simple way. Do you know any?
This is how I implemented my...
(This post is not about this thread's subject)
By the way, Stefan, just a suggestion: have you considered this approach for external beans? It uses the ConfigurationSupport.getBean(Class) method....
Hi.
Are there any news about this?
This bug is somewhat annoying...
Thank you!
(I deleted this message)
Hello,
Recently came across a problem with aspects and I wanted to know whether it's my fault or a bug.
I wanted to compare AOP configuration using JavaConfig and the classic XML configuration....