Quantcast
Channel: Spring Community Forums - Data
Browsing latest articles
Browse All 297 View Live

Creating native list structure in redis

I'm trying to create a native list structure on top of redis for a given user (there are multiple users). The list will hold about 20 bytes of data in each element and should use the redis R PUSH X...

View Article



Custom transaction handling

Hello, I want to use the native API of Google Application Engine Datastore (without JDO, JPA, etc.). What do I have to do to create my own transaction mgmt based on Spring transaction handling using...

View Article

Injecting Hibernate SessionFactory when using...

I am trying to obtain Hibernate SessionFactory. I was unsuccessful so far. I am using Java Config (no XML files) and Annotations. My persistence config is the following: Code: @Bean         public...

View Article

Database failover configuration.

Hi, We are using a spring based application with mysql \ jpa \ hibernate. We would like to configure a failover mechanism for our DB. we use <bean id="dataSource"...

View Article

How come my LIMIT 1 clause returns a collection of 2 objects

Hi, I have a finder which shoud return only one object but instead tries to return a collection of two objects. Here is how the finder looks like: Code:     @Query("SELECT cr FROM ContactReferer cr...

View Article


The ORDER BY clause seems to be ignored.

Hi, I have a finder which looks like: Code:         @Query("SELECT a FROM Admin a ORDER BY a.lastname, a.firstname")         public Page<Admin> findAll(Pageable page); I use it as: Code:...

View Article

Spring Data Hibernate JDBC Connection

I have been in the process of upgrading my application from Spring Framework 2.5.5 to 3.2.4.RELEASE, Hibernate 3.2.1.ga to 4.1.9.Final and Jave 1.5 to Java 1.6. The application is runs a WebSphere...

View Article

Removing an Element from DefaultRedisList

I'm trying to remove an object from the DefaultRedisList. The following replaces every single field in the object with the word "null" without actually removing the object from the list. What I'm I...

View Article


How to rollback transaction in spring

Hi, I am facing problem in transaction rollback using @Transactional annotation I have following method in service class Code: public class ItemServices {         public void saveUpdate(){...

View Article


Serialize a Page to XML

I'm working on a webservice that uses an elastic search repository. I have a controller with two methods that return data about stores. One returns Page<Store>, the other just returns a single...

View Article

Cached Query Opens JDBC Connection

I'm using a cache for the queries: Code:   public interface ResourceQuery extends Repository<Resource,Integer>{     @Query("SELECT r from Resource r WHERE r.resourceIdentifier.resourceServerName...

View Article

Spring Data Audit, JodaTime JDBC Driver/Hibernate exception -> Generics...

Hey all, when my entity model is mapping one SpringData Auditable joda.DateTime property: Code:         @Column(name="LAST_MODIFIED_DATE")         @Getter @Setter         //private Date...

View Article

Oracle JDBC connection encryption

I am trying to setup an oracle datasource to connect securely from a java Swing app to an Oracle DB using the UCP driver and have a couple of questions: Referring to the datasource below, is it correct...

View Article


SingleDataSource connection causing Database Lock

Hi Friends, I am facing a database deadlock problem while inserting data using SingleConnectiondatasource. I am not sure what is the actual cause for this.Please find my below code snippet . Java Code...

View Article

Spring MVC and Hibernate

Hi, I try use Hibernate 3 and Spring 3 together. I use STS tools. When I try inject into controler HibernateDao class, I get some error (if I skip @Autowired annotation code compiles): Code: INFO :...

View Article

Browsing latest articles
Browse All 297 View Live




Latest Images