Note that this only applies to Hibernate3 beans. In hibernate4 it is currently not possible to set the interceptor to the transaction manager - see https://jira.springsource.org/browse/SPR-9987 for...
Type: Posts; User: wild_oscar; Keyword(s):
Note that this only applies to Hibernate3 beans. In hibernate4 it is currently not possible to set the interceptor to the transaction manager - see https://jira.springsource.org/browse/SPR-9987 for...
I've added a ticket for this: https://jira.springsource.org/browse/SPR-9987
As for pappnas's code - it appears to be adding the interceptor to the sessionFactory, not to the session.
Does any Spring guru have any idea regarding this?
The test below was working in my application with Hibernate3. When I upgraded it to hibernate4, it started failing.
@RunWith(SpringJUnit4ClassRunner.class)...
For those interested: this is due to the way we have to lookup resources via the classloader. From ...
Not really Kent:
1) Moving originalApplicationContext.xml and myproperties.properties in Module1 from main/resources to test/resources makes (module2's) CopiedSpringPropertiesTest yield the error...
Dear all,
I have created the attached project to illustrate what I wonder is a bug.
I am using the PropertyPlaceholderConfigurer in the usual fashion, with a wildcard:
<bean...
I don't think it's the same. That link talks about "defining which properties file to use in web.xml", not about setting web.xml elements to values defined in a properties file.
I have a web application with a PropertyPlaceholderConfigurer that fetches properties from a somefile.properties.
In web.xml I have:
<context-param>...
Oh, much clearer. Thanks a lot jtougas.
So basically inner methods are called directly by the pojo class. They do not pass the proxied class and therefore any annotations are ignored (ie, the...
Marten, could you please check if your answer also applies to http://forum.springsource.org/showthread.php?t=107611 ?
More specifically, I don't understand your last sentence: what do you mean by...
Dear all,
I am trying to use spring's transaction management for my hibernate tests. In this quick scenario I am testing a generalDAO to which I @autowire the sessionFactory.
Regarding this...
The setup is
public class MedicinalProduct{
private List<ActiveSubstanceStrength> activeSubstanceStrength;
}
public class ActiveSubstanceStrength {
private Integer id;
I have some authorization code which I used in Struts2 to handle authorization.
Basically, I annotate a method with SecuredRoles(roles="a,b,c") and the Struts 2's interceptor checks that against...