What would be a good approach to implementing a LOB solution for use with the Oracle 10.2.0.1 JDBC driver? According to Oracle's FAQ, this version supports the standard JDBC APIs for working with...
Type: Posts; User: lightc; Keyword(s):
What would be a good approach to implementing a LOB solution for use with the Oracle 10.2.0.1 JDBC driver? According to Oracle's FAQ, this version supports the standard JDBC APIs for working with...
I just ran into the same problem. I suppose that the HibernateTemplate API will change when Spring includes the Hibernate 3.1 release in its disribution.
By the way, does anyone know of software...
According to the FAQ:
http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq_0.htm#06_10
the standard JDBC LOB API methods are now supported. I simply switched to using...
Take a look at the source for org.springframework.test.AbstractTransactionalSpringContextTests
I'm assuming that it would work correctly with JTA (although I'm not sure about nested...
Use the criteria query api instead:
final Criteria criteria = session.createCriteria(Table1.class);
if (a != null) criteria.add(Restrictions.eq("col1", a);
if (b != null)...
Are you using this in a web app? See the org.springframework.orm.hibernate3.support.OpenSessionInViewFilter. Adding this into your app should solve your problems.
Are both calls being performed in the scope of a transaction? See if this helps:
http://forum.springframework.org/showthread.php?t=15705
You may want to try posting here:
http://forum.hibernate.org/viewforum.php?f=1
(I'd answer your question if I knew the answer)
See:
http://forum.springframework.org/showthread.php?t=14647
I think the problem is that you are opening the Session directly, rather than letting Spring do it for you.
The superclass does it for you automatically. Say you want to use a bean called "myDao." I would add that as a property to my my.app.testing.AbstractMyAppTransactionalSpringContextTests class:
...
Yes. Take a look at the source code:
/**
* Execute the action specified by the given callback object within a transaction.
* <p>Allows for returning a result object created within the...
Absolutely. That's what is so great about Hibernate. You don't think about "working with the database." You just work with Java objects that are automatically persisted.
Please see my post here and let me know if it answers your question:
http://forum.springframework.org/showthread.php?t=15705
I recommend having your data access objects extend...
To add to this:
If you are using hibernate, you might have the AbstractMyAppTransactionalSpringContextTests extend a Hibernate-related support class. I have a HibernateTestCaseSupport class,...
Subclass org.springframework.test.AbstractTransactionalSpringContextTests and add your test cases onto that class. The test cases that you run will all be executed within the scope of a transaction...
Be sure you have a transactionManager bean configured
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property...
Hibernate 2.x uses packages:
org.springframework.orm.hibernate.*
Hibernate 3.x uses packages:
org.springframework.orm.hibernate3.*
Be sure you are importing from the correct package.
Please post your Hibernate mapping files. Also, if you turn on SQL logging in the Hibernate config or log4j, you should see SQL scroll by, indicating what Hibernate is doing. Be sure you are doing...
Alternatively, use java.util.Calendar. I ran into this issue, too. IIRC, Calendar is somewhat of a replacement for the (limited) Date class.