Hi,
You could use the SqlOutParameter for the OUT parameters to your stored procedures too.
Took your stored procedure and compiled it in Oracle (sorry!),
CREATE PROCEDURE SP_EXAMPLE (...
Type: Posts; User: amkush; Keyword(s):
Hi,
You could use the SqlOutParameter for the OUT parameters to your stored procedures too.
Took your stored procedure and compiled it in Oracle (sorry!),
CREATE PROCEDURE SP_EXAMPLE (...
Hi Ajay,
Hope, have worked this out right, you would like to, configure hibernateDataService as a ProxyFactoryBean and apply a hibernate interceptor plus your data service target to it. Correct? ...
Yes, transaction template is restricted to unchecked exceptions. For throwing checked exceptions you could use a transaction interceptor.
From the docs,
As with HibernateInterceptor,...
Hi Ajay,
Can you copy paste some of your code and the descriptor xml. That provides more info to help.
The source for sessionfactory utils shows the IllegalStateException being thrown when the...
Ajay,
Is this the full xml file,
Cos there doesn't seem to be a bean with dataService and hibernateDataServiceTarget.
Guess you are using a 'false' flag while getting the session,
Hi,
How do you use the refcursor passed as a parameter in the procedure? Is there a calling pl/sql that passes in the ref cursor to this procedure for it fetching data? Usually, its the other way...
Looks okay. Can you put the exception or any details.
All database updates(CUD) are handled via the update method.
Hi Benno,
You would need to create a stored procedure in Oracle and then call it. At the moment its an anonymous PL/SQL block, so you get an Oracle exception that the identifier must be declared....
Maybe this thread could be of some help to you,
http://forum.springframework.org/showthread.php?t=11691
Sorry no solution, but,
java.lang.NoSuchMethodError: org.springframework.core.io.AbstractResource: metho
d getDescription()Ljava/lang/String; not found
at...
Humberto,
You could define your session factory & jdbc template to use the same datasource like this,
<bean id="dataSource"...
You could setup a jdbc template, like,
DriverManagerDataSource dataSource = new DriverManagerDataSource();
dataSource.setDriverClassName("drivername");
dataSource.setUrl("dburl");...
Managed to do work on this.
It works well. You need to take care of using the JdbcTemplate from AbstractTransactionalDataSourceSpringContextTests
and pass it around to the dao and data creator...
Sure, Just give me sometime, its a bit scrappy at the moment.
Amazing. Didn't know about this. Read and tried it a bit. Thanks.
Got working something(scrappily). Each testcase uses the template from AbstractTransactionalDataSourceSpringContextTests to: set...
Hi All,
Am using Spring Jdbc as the underlying for writing a small Jdbc unit testing framework. I feel Spring Jdbc is the most powerful of the Jdbc frameworks that are there. So, in the framework,...
Yea sure,
Hacked together, webwork, spring and hibernate, and got it working for a sample web application. It looks good and a joy to work in, though keep stumbling cos of my own lack of knowledge...
Hi All,
Is there a sample application on WebWork + Spring + Hibernate combo out there? There are sample applications that use WebWork + Spring or Spring + Hibernate together but can't find a three...