minimum version required for the spring framework?
Is the latest version of spring data jpa compatible with the springframework 3.0 ? where i can find such information?
View ArticleHow to implement retries in JDBC template?
I have an app using NamedParameterJdbcTemplate to run some queries. It's been working reasonably well. Today I discovered that one of my datasources is failing with an obscure problem when it tries to...
View ArticleQuery method declaration can not be parsed correctly
There is an error occurred when application context initializing, I do not know what is the problem, could someone tell me why? thanks a lot. Code: Caused by: java.lang.IllegalArgumentException: Unable...
View Articlehibernate spring entitylistners
I want to add entitylistners to my entity for which I used annotation @EntityListners on my hibernate pojo, its not making any difference.The entity listners are not being called , I am uisng hibernate...
View ArticleUsing DataFieldMaxValueIncrementer to get Next Sequence Value in a clustered...
Hello, We use Sybase as our DB and since sybase did not provide a feature for sequences, we create a a custom table to hold sequences for different fields and we use DataFieldMaxValueIncrementer in our...
View ArticleAbout the doc 1.4... what do they mean with a "custom repository...
I'm reading again the documentation at <a href="http://forum.springsource.org/showthread.php?136894-Avoiding-data-related-code-spilling-out-into-the-service-layer&p=444362#post444362">Custom...
View ArticleError using persit()
I have this code: PHP Code: user.setFirstName(requ.getParameter("nombre")); user.setLastName(requ.getParameter("apellidos")); user.setEmailAddress(requ.getParameter("email")); user.persist(); And I'm...
View ArticleTargetEntity for JpaRepository possible?
Hi, I´m looking for something like a targetEntity property for JpaRepository. Let´s say I have an entity like this: Code: public class RecipeEntity implements Recipe Now I define a Repository: Code:...
View ArticleError trying to create persistence unit without persistence.xml
Using 3.1.2 (yes, it's older, too many dependencies to upgrade). our Spring context is as follows: Code: <?xml version="1.0" encoding="UTF-8"?> <beans...
View ArticleSpring-data + jersey integration
While integrating Jersey (1.8) and Spring I noticed that there was a conflict with spring-data-jpa. I've listed my dependencies and error message below. I read something about conflicts with the...
View ArticleSpring Transaction in a JMS message Listener
Hi , I have a message listener which listens to message from ActiveMQ. I need to create new threads within the listener and have transaction established, so that if any of the thread fails, the message...
View ArticleDoes jdbc:initialize-database work with NON embedded databases?
jdbc:initialize-database works great for my H2 database - but seems to be totally ignored for a connection pooled mysql one. Perhaps this feature only works with embedded databases? My context is as...
View Articlehow implement global AuditLogInterceptor using Spring 3 and contextual sessions?
Hello I need advice on implementing global AuditLogInterceptor in conjunction with using contextual sessions. Below is the code I am currently using. I produced it by modifying code that I had working...
View ArticleSpring-JDBC-ROMA, an ORM like bytecode generation based rowmapper for...
Hi all, I am currently working on an object mapping library for Spring's "RowMapper" and released at github (https://github.com/serkan-ozal/spring-jdbc-roma) I know there is already a rowmapper named...
View Articlegenerated value for a foreignkey which is non id
I have the mappings like below in the order Code: <hibernate-mapping> <class name="Map" table="maps" lazy="true"> <id name="id" type="java.lang.Long" column="mapid">...
View ArticleNeed Assistance Debugging why sqljdbc4 SQLServerDriver class is not being found.
I have hit a brick wall and I need some suggestions. I have installed the sqljdbc4 driver in my application's /WEB-INF/lib directory and I still receive the error: Caused by:...
View Article@Transactional PL/SQL procedure call using JdbcTemplate does not commit
Hello, I am having difficulty calling a simple PL/SQL stored procedure via JdbcTemplate that updates a row. From the attached trace log, it appears that the entire transaction lifecycle IS processed by...
View ArticleGenerating header row using StoredProcedure
Hello All, I'm extending the Spring StoredProcedure class to invoke an oracle sproc which returns a REF cursor. I'm currently using a SqlOutParamer with a ParameterizedRowMapper to map the REF cursor...
View ArticleSpring's Transaction manager not committing trancsactions intermittently
I am using spring 3.0.5 + hibernate with declarative transaction management in one of our components and everything seems to be working fine. But intermittently it so happens that one of the...
View ArticlePointcut syntax for properly applying Spring Caching abstraction to SD...
Hi all, I'm trying to use the Spring caching abstraction to cache some fairly static entities from my Mongo repositories. I think it's pretty straightforward to use Spring's caching when you've got...
View Article