Search:

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

Search: Search took 0.03 seconds.

  1. Spring Data JPA w/ EclipseLink : transaction issue

    Hello,

    I'm using Spring Data JPA along with EclipseLink, targeting a PostgreSQL database.
    While developing my app, I'd like to have more flexibility than simply the static "persistence.xml"...
  2. OK, I think I see what you mean: my test case...

    OK, I think I see what you mean: my test case differs from my actual code because it is run transactionaly.
    That's why you say that I need to adapt my test case in terms of clearing the cache. Am I...
  3. Well, my test case should mimic what my client...

    Well, my test case should mimic what my client code will do in the final app.
    So throwing the EntityManager in there would not be realistic.

    Furthermore, I've looked at the implication of making...
  4. Indeed, my "@Transactional(propagation =...

    Indeed, my "@Transactional(propagation = Propagation.REQUIRES_NEW)" idea was clearly a workaround :)
    So, if I follow your advice, here what my @Service looks like now:


    @Service
    public class...
  5. Thanks for your help Marten! So, if I...

    Thanks for your help Marten!

    So, if I understand correctly, Spring TX maintains an additional cache when switched on (which is different from JPA cache presumably !? and how does it work with the...
  6. Spring TX interaction with caching / detached entities

    Hello,

    I'm using Spring Data JPA in a simple "frontend <=> service <=> repository" layered architecture.
    What I'd like to do is to make my @Service return "detached" entities to the frontend, so...
Results 1 to 6 of 6