@alfranke,
I’m testing the latest build of WebAPI and Circe on postgres. The error we’re receiving in the logs is this:
SQL Error: 0, SQLState: 25P01
2015-03-03 22:42:22.149 ERROR http-nio-8080-exec-453 org.hibernate.engine.jdbc.spi.SqlExceptionHelper - - Large Objects may not be used in auto-commit mode.
I’m getting this when we read a definition going to the path /cohortdefinition/{id}
This is the code that i’m using to load the record:
CohortDefinition d = this.cohortDefinitionRepository.findById(id);
return cohortDefinitionToDTO(d);
This is using a Spring-Data constructed repository interface such that it parses the function name to produce the query. I did this (as opposed to findOne) so that I could specify the entity graph to fetch the object:
@EntityGraph(value = "CohortDefinition.withDetail", type = EntityGraph.EntityGraphType.LOAD)
CohortDefinition findById(Integer id);
Do you know if i can specify @Transactional on this method defined in the interface? I’m wondering if I need to just build a data access object by hand instead of leveraging extending CRUDRepository? Have you any experience with this behavior?
-Chris