Spring hibernatetemplate saveorupdate not updating
*** Nonentity association: 1 non-XA retrievals took 0.109 seconds. RQST (RQST_ID, START_DATE, END_DATE, CLAIM_NUMBER, RQST_PID) values (? Motivation: While there are a few resources available online for calling stored procedures from Hibernate, it took me a while to stumble across one that mostly captures what I need. We can create a standard project layout of src, test and lib folders with the following jars on the classpath:package spring.hibernate.oracle.stored.procedures.domain;import javax.persistence. We will begin by setting up some simple test data in the database, and then we can call our DAO method to find Authors by their last names.The intention of this blog entry is to put a similar example into my own words, to extend it slightly and hopefully to help anyone not experienced with Hibernate and Oracle to integrate Stored Procedures and Functions into an application quickly. We can initialize our schema user with SQLPlus with the following commands: We will download spring-framework-2.5.5-with-dependencies.zip, hibernate-distribution-3.3.1. Again, we can take advantage of a convenient Spring base class for our test cases.package spring.hibernate.oracle.stored.procedures.dao;import org.junit. Abstract Transactional Data Source Spring Context Tests;public class Author DAOTest extends Abstract Transactional Data Source Spring Context Tests [email protected]@org.hibernate.annotations.Typically used to implement data access or business logic services that use Hibernate within their implementation but are Hibernate-agnostic in their interface.
Only registered users can post (registration is free). When I run the same application using the Atomikos Essentials 3.7.0M5 JTA transaction manager, the app fails due to: Named Native Query(name = "find By Last Name", query = "call find By Last Name(?