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

Replace WHERE clause at runtime

hi, I am very new to the Spring Framework. I would like to find out if there is a way to change the WHERE clause of the query right before executing it. I'd appreciate if you could point me in the...

View Article


DB2 in spring,DisconnectException

hi guys,I'm trying to connect to DB2 with spring framework,and I got an Exception:com.ibm.db2.jcc.b.DisconnectException: The application server rejected establishment of the connection. An attempt was...

View Article


data-jpa: throwing some exception when result is null

Hi, I was wondering if there was an option in spring-data-jpa to throw an exception when a query returns null. For example, if I have a @Repository with a method "User findByEmail(String email)", I...

View Article

Insert/update troubleshooting

I don't know if this is a problem with JPA, Spring JPA, or Hibernate, but it is a problem I experience often. The main issue is the lack of error messages. Problem: - Attempt to do a persist or merge....

View Article

How to include Spring to be part of EJB CMT transaction

We have an EJB application deployed in weblogic that calls some spring beans (Services and DAO). We use multiple data sources in the application. Unfortunately we have to use Non XA driver for our Data...

View Article


Default cascading behavior for a ManyToOne relationship ?

Hi, I have a ManyToOne unidirectional relationship between a subscription and a user account. I would like the user account object to be persisted when the subscription is persisted. At first, none of...

View Article

Property not found in order by clause

Hi, An integration test gives me an exception: Quote: org.springframework.data.mapping.PropertyReference Exception: No property lastname found for type...

View Article

What does getSessionOpenCount() -getSessionCount() represent

Hi all, I am using HibernateStatistics to monitor session leakage. And to monitor session leakage I am relying on this Code: hibernateStatistics.getSessionOpenCount()...

View Article


Is Spring Framework right for my application?

Hello. I am hoping that someone can help me decide if the Spring framework is a good option for me. Here is some background. I work at a university and develop pl/sql programs for automating financial...

View Article


Naming a finder findAll injects the one from SimpleJpaRepository instead of...

Hi, I have a finder I named findAll as in: Code: @Query("SELECT es FROM ElearningSubscription es, UserAccount ua WHERE es.userAccount.id = ua.id ORDER BY ua.firstname, ua.lastname, es.subscriptionDate...

View Article

Some questions from a newbie...

Hello, iam a pupil from Germany. At First - sorry for my bad language :) I hope anyone can help me to understand the whole Spring thing.... I can not display the data of the model on my jsp page... :(...

View Article

How to define a data

Hello friends, How can we define a data for Database ? _________________ Husband and wife problem solution | Get love back by black magic | Mohini Vashikaran mantra for girl

View Article

BasicDataSource vs DriverManagerDataSource: connection pooling

If I use the following Bean declaration with a jdbcTemplate, can I automatically assume that connection pooling is being used? Please notice the usage of apache.commons.dbcp.BasicDataSource vs...

View Article


Pre-bound JDBC Connection found!

We have an app that is using hibernate, spring, and DB2 in websphere 7. We have audit triggers and we need to set so the triggers can know the logged in user (we use generic logon to the database). We...

View Article

How can I use a LIMIT with a ZSET using spring-data-redis

Hi, I need to paginate through a ZSET score range and since it is possible that there could be many deserialized objects as values, I dont want to run out of memory trying to load all at once. Is there...

View Article


Are Session Automatically Closed when Exception Occurs

Hi all, I am using Declarative Transactional Support in spring,basically all the service classes are annotated with @Transactional and in code I am using this Code: Session...

View Article

Spring-data JDBC with firebird

hello, i try the spring data jdbc with querydsl on a firebird database but it seems that is not supported because i get this error message : DatabaseType not found for product name: [Firebird 2.51UI]]...

View Article


Image may be NSFW.
Clik here to view.

The value for the useBean class attribute ... is invalid

Howdy! I'm a Spring newbie, been reading the official reference documentations as well as learning from the web tutorials for half year but I haven't come to a success point. Now that a project from...

View Article

No _class value when saving objects to the database

I am using Spring Data MongoDB 1.3 RC1 to read and write pojos to my mongo database. The pojos are fairly simple and the reading and writing is successful. However, when I look at the database,...

View Article

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