Search:

Type: Posts; User: lightc; Keyword(s):

Search: Search took 0.03 seconds.

  1. Spring + LOBs + LobHandler + Oracle 10.2.0.1 JDBC + advice about connection pooling?

    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...
  2. Replies
    3
    Views
    968

    I just ran into the same problem. I suppose that...

    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...
  3. Try 10.2.0.1 driver

    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...
  4. Re: how transactions are handled in AbstractDependencyInject

    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...
  5. Replies
    2
    Views
    1,417

    Use the criteria query api instead: final...

    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)...
  6. Are you using this in a web app? See the...

    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.
  7. Thread: Lazy Question

    by lightc
    Replies
    6
    Views
    1,413

    Are both calls being performed in the scope of a...

    Are both calls being performed in the scope of a transaction? See if this helps:

    http://forum.springframework.org/showthread.php?t=15705
  8. Replies
    1
    Views
    1,173

    You may want to try posting here: ...

    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)
  9. See: ...

    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.
  10. The superclass does it for you automatically. ...

    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:

    ...
  11. Replies
    10
    Views
    5,953

    Yes. Take a look at the source code: /**...

    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...
  12. Replies
    10
    Views
    5,953

    Absolutely. That's what is so great about...

    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.
  13. Replies
    4
    Views
    15,860

    Please see my post here and let me know if it...

    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...
  14. To add to this: If you are using hibernate,...

    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,...
  15. Subclass...

    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...
  16. Replies
    10
    Views
    5,953

    Be sure you have a transactionManager bean...

    Be sure you have a transactionManager bean configured


    <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    <property...
  17. Replies
    2
    Views
    1,453

    Hibernate 2.x uses packages: ...

    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.
  18. Replies
    4
    Views
    15,860

    Please post your Hibernate mapping files. Also,...

    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...
  19. Replies
    3
    Views
    7,097

    Alternatively, use java.util.Calendar. I ran...

    Alternatively, use java.util.Calendar. I ran into this issue, too. IIRC, Calendar is somewhat of a replacement for the (limited) Date class.
Results 1 to 19 of 19