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...
Type: Posts; User: rodrix79; Keyword(s):
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...
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...
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...
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,...
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...
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...
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...
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...
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...
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...
Ok. Now I know this is an equals() and hashCode() implementation problem. Any best practice on this?
Thanx
Rodrigo
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?...
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...
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?...