Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    5,679

    Property placeholder configuration without xml - all in JavaConfig

    Try the following in 3.1.0 using the new PropertySourcesPlaceholderConfigurer. Notice that the bean is declared static.



    static @Bean public PropertySourcesPlaceholderConfigurer...
  2. Replies
    1
    Views
    478

    Can you apply aspects to a spring test?

    If you have a spring test


    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(locations={"classpath:spring-test-config.xml"})
    public class MyTransactionSpringTest {

    @Test
    ...
  3. Root cause

    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...
  4. Using spring's transaction management vs. manual management

    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...
  5. CannotCreateTransactionException non-forked integration testing "Session is closed!"

    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...
  6. Since no response, added JIRA Entry SPR-8864...

    Since no response, added JIRA Entry SPR-8864.
  7. How to set namingStrategy in LocalSessionFactoryBean in Spring 3.1.0 and hibernate 4?

    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...
  8. Replies
    1
    Views
    1,112

    system-properties-mode gone from context:property-placeholder in 3.1?

    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: ...
  9. blog by Chris Beams shows building spring 3 from source

    See
    BUILDING SPRING 3 by Chris Beams
  10. Great, it works....

    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.
  11. Thank you and sessionFactory derived from an EntityManager

    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.
    ...
  12. Zip file with maven project for Marten

    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...
  13. Marten: Actually I had searched the spring...

    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...
  14. No CurrentSessionContext configured!, No session currently bound to execution context

    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...
  15. How to stay up to date with the latest Release Candidate (RC)? RC2

    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...
  16. got it. thanks

    got it. thanks
  17. Replies
    2
    Views
    9,557

    goodbye HibernateTemplate in spring 3.1.0.RC1?

    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...
  18. Missing Hibernate Classes/Interfaces in spring-orm-3.1.0.RC1

    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...
  19. Replies
    2
    Views
    9,557

    HibernateDaoSupport for Hibernate4

    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...
  20. CriteriaQuery from toPredicate

    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...
  21. Example of CriteriaQuery usage within a Specification

    The Specification interface includes:


    Predicate toPredicate(Root<T> root, CriteriaQuery<?> query, CriteriaBuilder cb);


    Can someone provide an example of using the provided CriteriaQuery...
  22. Replies
    2
    Views
    579

    Use @Query...

    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")
    ...
  23. Replies
    2
    Views
    579

    Eager Fetch within a Specification

    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...
  24. I am experiencing similar behavior. Interested...

    I am experiencing similar behavior. Interested to see if this is an edge case.
  25. Replies
    11
    Views
    3,954

    favor orm.xml over .hbm.xml when using jpa and spring-data

    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...
Results 1 to 25 of 47
Page 1 of 2 1 2