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

Spatial database support (f.e. Postgis)

Hi together, is there any spatial database support in spring-data or is this kind of feature somewhere on the roadmap? As we already stick to spring-data I do not want to switch to native...

View Article


Hibernate Multi-Tenancy

Hiya, Can anyone please point me to a good tutorial about how to setup Hibernate 4.1 multi-tenancy with Spring 3.1 as I am unable to find one. Thanks a lot for your time. Mike West

View Article


repository:jackson-populator produces "Could not open ServletContext resource...

Hello, I'm trying to use the jackson-populator to put some fixed values into a database. However loading the application context always fails with a FileNotFoundException:-...

View Article

Problem with EmbeddedId and ManyToOne

Hi I'm new in spring and I have some problems with a composite key and many to one relation. My classes are the following. Code: @Entity @Table(name="TEST2_SERVICES") public class Test2Service...

View Article

exception when accessing application

exception when accessing application resumid: org.apache.jasper.JasperException: javax.servlet.ServletException: Error creating bean with name 'mBeanLogin': Invocation of init method failed; nested...

View Article


Spring 3.1.1 + Jboss 7.1.1 + JTA, No Session found for current thread

Hi, I had been setting up JTA transaction in my app. I have search through the forums and the internet. But still, i not able to get it work. I have done the following. 1. set up my data source in...

View Article

getSimpleJdbcTemplate().query() problem

Hello, When I execute the following code, on Oracle: Code: public static String QUERY_DATOS_LINEA="SELECT LIN_ID,LIN_IDF FROM CVI_LINEAS@SAE_DB"; List<DatosLinea> lista =...

View Article

Use Hibernate StatelessSession along another Spring managed session.

Hi, Normally, we use Spring and Atomikos to manage the JTA sessions and set hibernate.auto_close_session to true. Now, if we manually open a stateless session (for some async job) as: Code:...

View Article


REST-retrieval of entities

Hi all, Most sample implementations are based upon JPA entity retrieval using JPA's entity manager. How would one go about entity retrieve via REST, i.e. a webapp retrieving, displaying and updating...

View Article


In unit testing, transactions aren't committed

I've spent the day slowly getting unit testing of my SpringMVC/Hibernate webapp working. The app itself works great. It uses OpenSessionInViewFilter, which I've simulated in my tests with the...

View Article

After update from 3.0.6 to 3.1.3, getting unexplained "Invalid column type"

I have an app that was working fine with 3.0.6. I'm upgrading to 3.1.3. I noticed that SimpleJdbcDaoSupport is now deprecated. I use named parameters, so I changed it to NamedParameterJdbcDaoSupport....

View Article

Query methods that return lazy List/Iterable?

I may be missing something, but it seems that Spring Data is conspicuously missing the ability to perform a query that returns an arbitrarily large result set and load/process the rows on demand rather...

View Article

Integration of Johm with Spring

I'm researching the use case of persisting my Java domain object into Redis DB and found Johm as an interesting serialization mechanism and a seeming alternative(?) to. Spring's own...

View Article


Cannot apply method security on Spring-data-jpa repositories

I have already posted about this on the security forum, but this issue seems to be restricted to the spring-data repositories. There seems to be no way to apply method security on Spring-data...

View Article

Instantiating JdbcDaoSupport in non spring java application

Hello, We have a non spring application which uses some support jars (the code in the jars are spring beans). For e.g., we have a Custom DAO that extends JdbcDaoSupport and uses...

View Article


JPA: spring appl calls other spring appl, the both appl have an EntityManager...

Hi, We have spring applications (client spring app) calling other spring app (target spring app). Each appl has its entityManagerFactory (with OpenJPA impl) defined. We got this issue: Caused by:...

View Article

Transaction Inept.. need help!!

Hi, i've been struggling with this for a couple of days now. I'm trying to do something very simple, write a record to a MySQL DB with a field set, have another process polling the same DB and flip the...

View Article


Record locking in postgresql

Hi, I'm using Spring/Hibernate/GWT. In my DaoImpl I have metod getLockRecordForEdit() for that I'm using getHibernateTemplate().get(Object ... , LockMode.UPGRADE) but when I opened new web client I can...

View Article

Reading a date from a Mysql database

I am trying to read a record from a Mysql database. One column is a date, but my object's java.sql.Date object isn't being populated. It still has null, even though all rows in the table have values...

View Article

Spring Caching / Data Handling

Hi All, I'm new to Spring.. I'm looking some nicer way to handle data / cache in spring.. Here is my use case.. steps # 1. User uploads the CSV file in (maximum of 5000 records) in page-1 2. Get some...

View Article
Browsing all 297 articles
Browse latest View live