Search:

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

Search: Search took 0.03 seconds.

  1. System wide Spring exception mapping to Http Status codes in Spring MVC 3.1

    Is there anyway to map Spring exceptions (Ex. JpaObjectRetrievalFailureException) to REST status code without using a controller specific @ExceptionHandler? I would like to configure that system...
  2. Replies
    0
    Views
    760

    Problem with SOAP Header not being set

    Hi all... question: any reason why the following code is not setting the apiKey SOAP Header?


    package com.hoovers.webservice.springdemo;

    import java.io.IOException;

    import...
  3. I think I am getting it now...

    So if I want to use HibernateTemplate.load() in a meaningful way I better manage Transactions myself (either using declarative support or using a programatic approach), right?

    So the correct use...
  4. Trying to do my homework :)

    Thanx mdeinum for your answer to this "uninformed" padawan ;)


    I suggest you read up on the differences between load and get of the hibernateTemplate/session object.

    Correct me if I am wrong,...
  5. My problem is not with collections only...

    Thanx, toverlier. Still, my problem is not with collections only. I tried to retrieve a String (name) and I got the same problem.

    Besides, I think that using a "left join fetch" approach is much...
  6. Right... Can you ask me another question?

    Right... I corrected it... Thanx, guznik
    Can you give a hand with something else? I am asking another question on the forum but nobody has replied. Can you give me some hint about how do you use...
  7. Just dealy your proxy initialization using lazy-init="true"

    Ok. Seems like I have it working now. Looks like you need to delay the creation of your Transaction Proxy until you have a valid session context (that is, until your first request).

    So I added...
  8. The "Scope 'session' is not active for the current thread" exception

    Ok... Here it is the exception I am getting:

    Still, when starting my App in a Tomcat 6.x server I get this exception:


    GRAVE: Excepción enviando evento inicializado de contexto a instancia de...
  9. Problems with HibernateTransactionManager / TransactionProxyFactoryBean killer duo

    Now I am trying to use the naked Session instead of using HibernateTemplate since it seams like the "latest trend".

    So I have made my homework, read the manuals and API's and started using the...
  10. Thanx...

    Hi. Thanx for your answer. It's been the first answer I receice in this forum so at least now I now I am doing the right questions (when you REALLY read how to use these forums, you get afraid of...
  11. equals() and hashCode() implementation problem

    Ok. Now I know this is an equals() and hashCode() implementation problem. Any best practice on this?

    Thanx

    Rodrigo
  12. Workaround

    Ok, i found a workaround using HibernateTemplate.find(). Still, what is the idea of having a HibernateTemplade.load() function which closes the session but never loads any of the instance properties?...
  13. PersistentSet.remove() is not removing an object!!!

    Hi again. Any idea why this code is not removing the c instance from that PersistentSet?



    Course c = (Course )hibernateTemplate.find("from Course c where c.idCourse = ?", new...
  14. Why HibernateTemplate.load() doesn't load all properties?

    Hi. I have been looking all around but I haven't found any reason why HibernateTemplate.load() doesn't load all the properties of an instance. For example, why this code sends a LazyLoadingException?...
Results 1 to 14 of 14