Try the following in 3.1.0 using the new PropertySourcesPlaceholderConfigurer. Notice that the bean is declared static.
static @Bean public PropertySourcesPlaceholderConfigurer...
Type: Posts; User: javapda; Keyword(s):
Try the following in 3.1.0 using the new PropertySourcesPlaceholderConfigurer. Notice that the bean is declared static.
static @Bean public PropertySourcesPlaceholderConfigurer...
If you have a spring test
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath:spring-test-config.xml"})
public class MyTransactionSpringTest {
@Test
...
The root cause seems to be related to intermixing the spring Transaction Manager (affected by the @Transactional annotation) with tests that run using a manually choreographed transaction (see...
The test methods of the integration tests make use of the @Transactional annotation. Using @Transactional seems to work fine within individual integration tests.
If, we use a manual approach to...
We are converting to using spring-3.1.0.RC2 and hibernate-4.0.0.CR7
We have several hundred integration tests. When they are run in a forked mode (<forkMode>always</forkMode>, which takes much...
Since no response, added JIRA Entry SPR-8864.
Using spring 3.1.0.RC1 and hibernate 4.0.0.CR5.
The hibernate 3 version of LocalSessionFactoryBean (org.springframework.orm.hibernate3.LocalSessionFactoryBean) had a property of...
I have a spring configuration that is using the new 3.1 schemas. But I noticed that the system-properties-mode no longer seems to be available when setting up context: property-placeholder.
Q: ...
See
BUILDING SPRING 3 by Chris Beams
Fantastic! I tried your implementation and it works nicely.
If you ever get to Tucson, AZ, stop by and I'll buy you a refreshment!
Thanks again.
Marten,
First of all, thank you for taking the time to look at this.
The project under consideration has traditionally been a non-JPA spring/hibernate project. We are converting to JPA.
...
Marten,
I have uploaded a zip file (for-marten.zip). It is a maven project which demonstrates the issues we have been discussing in this thread.
I have included a README file at the top level...
Marten:
Actually I had searched the spring forums for this but did not see any (vs. 'lots of threads'). I just did another spring forum search on 'CurrentSessionContext' and the only thing that...
Using spring 3.1.0.RC1, Hibernate 4.0.0.CR5 and JPA. I have an integration test that was producing the following error:
No CurrentSessionContext configured!
So I discovered a hibernate...
What is the best way to stay up to date with the latest release candidate?
For instance, 3.1.0.RC1 is out, but it has some issues (e.g. SPR-8776 ). These issues are slated for RC2, but RC2 is not...
got it. thanks
Release information here indicates they are doing away with
Eliminate HibernateTemplate and friends (e.g. HibernateCallback in favor of Spring's more modern 'Native Hibernate DAO' approach which...
As mentioned in an earlier post, we are attempting to convert to spring 3.1.0.RC1 and Hibernate 4 (4.0.0.CR5).
It seems that several classes/interfaces are no longer available, deprecated, or...
We are converting to Spring 3.1.0.RC1 with Hibernate 4.0.0.CR5.
We have been using "org.springframework.orm.hibernate3.support.HibernateDaoSupport" as a backing for our DAO's.
Is there a...
Thank you for your response. Oliver's article is useful, however, I am looking for an example of a specific use of the CriteriaQuery from within the toPredicate method. If you discover one, I would...
The Specification interface includes:
Predicate toPredicate(Root<T> root, CriteriaQuery<?> query, CriteriaBuilder cb);
Can someone provide an example of using the provided CriteriaQuery...
Ended up implementing with a Query in a method on the repository interface:
@Query("select t from SomeEntity t LEFT join fetch t.children where t.treeNodeId=:treeNodeId")
...
Can someone provide an example of how to create an eager fetch predicate within a Specification?
Let's say you have an entity which has an association to some children of the same entity. The...
I am experiencing similar behavior. Interested to see if this is an edge case.
Code: HERE - contains a maven-based project with necessary artifacts to produce (and resolve) the scenario associated with this thread.
Documentation: HERE
Hopefully this will help other...