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 ArticleAdding 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 ArticlePassing 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 ArticleBest 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 Articlecustom 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 Articleorg.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 Articlespring 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 ArticleHELP: 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 ArticleIntermediate 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 Articlebest NativeJdbcExtractor implementation for Oracle UCP connection pool
Hi, I am looking for best compatible NativeJdbcExtractor implementation for Oracle UCP connection pool.
View ArticleHow 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 Articlehow 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 ArticleHibernat4 - 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 ArticleHow 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 cant replace store procedure with any other thing as my...
View ArticleTransactionTemplate 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 ArticleTotal 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 Articleorg.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 ArticleJTATransactionManager 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 ArticleSpring-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 ArticleBeanCreationException 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