An strange bug after running Junit
Hello everyone, After removing spring-jdbc / spring-tx of our project libs, a decision of my company (which I do not understand) we had to re work the database access layer. Then, when we ran the junit...
View ArticleSaving and querying plain JSON with spring-data-mongodb
With the resolution of DATAMONGO-679 it is possible to save plain JSON using the MongoTemplate mongoTemplate.save(jsonString, "myCollection"); But how to query for the JSON?...
View ArticleWhy I get a No qualifying bean error?
I have a simple Spring Data implementation: Code: public interface AccountRepository extends JpaRepository<Account, Long> { Account findById(Long id); Account...
View Article{om}watch elysium/sea of monsters online
In "Elysium," Neill Blomkamp's shrewdly revved-up and exciting dystopian thriller, Matt Damon's character, Max, spends most of the movie with a spidery black-metal exoskeleton implanted in his skull...
View ArticleMongoEventListener, onAfterLoad and @DBRef
Hi, I'm using spring-core 3.2.3, spring-data-commons 1.5.1 and spring-data-mongodb 1.2.1 I've created an annotation to flag certain fields to be compressed before being persisted to the mongdb...
View ArticleInsert Spring 2.5 and Hibernate 3.0
Good night guys. I'm trying to do a simple insert into a table with the following fields person (name, age). I'm having a hard time but I have done a good deal. This giving the following error: Code:...
View ArticleSpring data rest - dead?
There has been not much activity since release of Spring data rest -1.1.0M1 release. Usually I noticed RC is released within a month or two after releasing milestone release. Also "Restbucks" project (...
View ArticleA spring-data-rest "Getting started" Tutorial
Hi guys, im a big fan of spring-data and also its newest addition spring-data-rest. So i made a getting started tutorial. http://babdev.blogspot.co.at/2013/08...in-action.html Definitely check it out,...
View ArticleIntroduction!
Hello i am Duncan from Canada and I like this forum too much. I found a lot of learning and entertaining material on this forum. So, I have decide to join this forum. I am very glad to became a member...
View ArticleOracle package types are supported ?
I every example I found in documentation I saw the usage of STRUCT for Oracle types created by CREATE TYPE... statement. However Oracle supports also the definition of types within a package as :...
View Articleorg.springframework.dao.DuplicateKeyException during delete
Hi I am using Spring = 3.2.3.RELEASE And Hibernate-annotations = 3.5.6-Final I have bean : Code: @Entity public class Step implements Serializable, Comparable<Step> { private static final...
View ArticlePotential EntityManager Bug
Hi, We are having an issue after configuring our web service project to use Spring 3.2.3 and Hibernate 4.2.3 to connect to a MySQL database. We are currently using the @PersistenceContext annotation to...
View Articletransaction in a scheduled Runnable?
Hello, I have a worker class TestWorker that implements Runnable. Code: @Service public class TestWorker implements Runnable { @Autowired private ProvisioningService provisioningService;...
View ArticleSpring Data JPA using unnecessary JOIN for querying one single table
Hello, Since Spring Data JPA 1.2.1, unnecessary joins are generated when a single table is queried, which can take 10000 times longer to execute when tables contains millions of records. With log4jdbc...
View Article@Autowired Not Working For Repository, Works For Other Classes
I am attempting to autowire a repository into one of my classes but I cannot get it to work and it has been driving me crazy for the past couple days. NOTE: The program will run and the autowiring of...
View ArticlegetNamedParameterJdbc Template, update, and infinite stepping
Hi All, So I am writing some DAOs for a project and I'm using spring's getNamedParameterJdbcTemplate(). Whenever I call .update(String sql, Map parameters), the program just steps on the same line...
View ArticleLarge No of Session Leaks in Spring + Hibernate Application
Hi all, I have recently started working on a legacy application that uses Hibernate and spring. Since it is a legacy one, in the code we are using HibernateDAOSupport for using Hibernate in Spring. Now...
View ArticleHow to @PersistenceUnit(unitName) a JBoss AS 7 DataSource in a Spring...
Hi there I am searching the net for quite a while now and do not find a solution to this, why I am approaching you to see if anyone can help me. The topic says it already, I have a normal...
View ArticleCatching Exceptions during startup when using @EnableTransactionManagement
I'm trying to handle database connection exceptions more gracefully than what seems to happen by default. Currently, if there is anything wrong with the database, or the properties used in defining the...
View ArticleCaused by: org.hibernate.HibernateException: No Session found for current thread
Hello, everybody! I'm beginner in Spring. I started project with Spring+JSF(PrimeFaces)+Hibernate. Login page works fine. But after that, when page redirecting to index.jsf Code: <!-- index.jsf...
View Article