Quantcast
Channel: Spring Community Forums - Data
Browsing all 297 articles
Browse latest View live

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 Article


Saving 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 Article


Why 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 Article

MongoEventListener, 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 Article


Insert 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 Article

Spring 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 Article

A 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 Article


Introduction!

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 Article


Oracle 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 Article

org.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 Article

Potential 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 Article

transaction 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 Article


Spring 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 Article


getNamedParameterJdbc 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 Article

Large 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 Article


How 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 Article

Catching 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 Article

Caused 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
Browsing all 297 articles
Browse latest View live