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

SPRING + HIBERNATE + JPA + JTA + POSTGRES, no commit

Hi, Im currently trying to use spring with hibernate and jpa, but currently when I try to persist an entity is not been commited My persistence.xml is the following Code: <?xml version="1.0"...

View Article


Adding new datasources in runtime

Hi, At application starting I have only one data source bean (Hibernate). From this bean I can get an arbitrary number of a new database settings. Each from this databases has the same schema, but...

View Article


Passing xmltype from Spring stored procedure class to Oracle

Hi, I have a Oracle stored procedure written in 11g which takes xml as i/p create or replace PROCEDURE "XDATA" ( inXDATA IN SYS.XMLTYPE, outStatus OUT varchar2) AS BEGIN INSERT INTO SPZN.testXML(XDATA)...

View Article

Best Practice Request: Repositories with Multiple Datasources

What's the best practice regarding configuring an application to have multiple datasources leveraging the same repositories? I suspect that my current approach is utterly mangling the project's...

View Article

custom query on findOne method

Hi, I am trying to define custom query for fetching object by id , bit it seem like it doesn't have effect when I define query on findOne() method in my repository interface (which extends...

View Article


org.hibernate.LazyInitializationException specific case probably

Currently I working on implementing web based application with persistence to DB . I use Spring 3.2.3.RELEASE , Hibernate 3.5.6-Final , JSF 2.1.6 + PrimeFaces 3.5 . I get...

View Article

spring jdbc + where in clause with composite keys

Hello, I have tried to use where in clause with composite keys with Spring jdbc but wihtout success. Does somebody have example how to code this condition? in sql it looks like this select * from...

View Article

HELP: Force REQUIRED transaction propagation

Hi, I have a web service method which calls to many transactional methods of many DAO classes (annotated with Transactional(propagation = Propagation.REQUIRED_NEW)). I don't want these methods to...

View Article


Intermediate repository interface with generics

I have a class NamedEntity, which has a name attribute. I'd like to search by this field using a findByName method. But not just on that class, but also all the subclasses, so I've build this: Code:...

View Article


best NativeJdbcExtractor implementation for Oracle UCP connection pool

Hi, I am looking for best compatible NativeJdbcExtractor implementation for Oracle UCP connection pool.

View Article

How to reuse the super repositories persistent logic with different entity type

Assume i have an application which will deal with 3 regions, Such as: China, India and Korea. And the 3 regions has similar table to persistent, but each table may has it's specific fields (even more...

View Article

how to Enter Data in Combo Box Dynamically from Database MySql in Spring MVC 3

My Jsp Form is Code: <form:form action="Imei.obj" modelAttribute="imei">         <!-- to display error message from action method if any -->         <form:select id="brand"...

View Article

Hibernat4 - How to force commit inside a @Transactional method

Hello, i have a web app with hibernate 4 integration. This is my simple configuration: Code:         <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">...

View Article


How to call stored procedure with IN-OUT parameters in batch?

Hi All, Urgent!! I am badly stuck in one issue. I want to call oracle stored procedure in loop. Store procedure has IN and OUT parameter. i can’t replace store procedure with any other thing as my...

View Article

TransactionTemplate commits on JTA Timeout

Hi, I have noticed the following behaviour while using TransactionTemplate with Spring JTA Transaction Manager backed up by Atomikos and Hibernate as JPA provider. Within a transaction scoped through a...

View Article


Total pagination parameters missing in JSON response

Hi, when using pagination parameters for a call to my Spring Data REST-based URL, I get a correctly paged result with paging values for offset, page etc. However, the parameters for totalPages and...

View Article

org.hibernate.type.SerializationException: could not deserialize

Hi all! For the first time I have a serialization problems with hibernate and spring. I post my config files and my criteria query. I hope in your help and suggestions! Thanks in advance! 1)...

View Article


JTATransactionManager Not Committing To Database

Hi I will be working with a database and with a JMS queue so I decided to use JTATransactionManager (multiple resources). I am using Spring Framework 3.2.3.RELEASE Hibernate 4.2.1.Final Glassfish...

View Article

Spring-Data 1.3.2 with spring-tx-3.2.x

I wanted to upgrade my project to newest Spring versions. However now my unit tests don't run anymore because the context fails to load. This happens when set spring-orm to version > 3.2.2 or 3.2.2...

View Article

BeanCreationException Error creating bean ClassFormatError...

I have problem within my standalone application. It started before, but I updated eclipse or may be else one, and desktop application cannot start now. I use there SPRING 3.2.3, HIBERNATE 4.1, SQLite....

View Article
Browsing all 297 articles
Browse latest View live