Search:

Type: Posts; User: ranma172; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    8,428

    I've found the answer HERE...

    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()...
  2. But, if you are using the MVC in a desktop app,...

    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?
  3. Replies
    4
    Views
    8,428

    Well, now I'm just learning how to use it. ...

    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...
  4. Replies
    4
    Views
    1,324

    Yes, it's a bad idea to put business code in...

    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. :)
  5. How to avoid Lazy error in a non-web app?

    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...
  6. Replies
    4
    Views
    8,428

    any ideas? Thanks!

    any ideas? Thanks!
  7. Replies
    4
    Views
    1,324

    I suppose HibernateTemplate (and...

    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...
  8. Replies
    2
    Views
    881

    Spring 2.5.5 ships with Hibernate 3.3.0.CR1...

    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...
  9. Replies
    4
    Views
    8,428

    Auto generated keys with JdbcTemplate update(sql)

    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...
  10. Replies
    7
    Views
    2,332

    (This post is not about this thread's subject) ...

    (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....
  11. Replies
    7
    Views
    2,332

    Hi. Are there any news about this? This bug...

    Hi.

    Are there any news about this?

    This bug is somewhat annoying...

    Thank you!
  12. (I deleted this message)

    (I deleted this message)
  13. AOP doesn't work if advice has overloaded methods

    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....
Results 1 to 13 of 13