Search:

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

Search: Search took 0.02 seconds.

  1. Oh, right, duh... Thanks :) Paul

    Oh, right, duh...

    Thanks :)

    Paul
  2. I need a little clarification - I should write a...

    I need a little clarification - I should write a custom BeanPostProcessor then to handle this?

    Paul
  3. No, that came about through tinkering and...

    No, that came about through tinkering and curiosity about what happens when. In general I don't log things like setter.

    Thank you for your solution as well!

    Paul
  4. How do I wire a custom annotation at the same time as @Autowired?

    Hi,

    I've got a custom logger annotation that is based off this post: http://jgeeks.blogspot.com/2008/10/auto-injection-of-logger-into-spring.html

    It works fine unless I try to use the...
  5. Totally confused - @Component vs @Configurable

    Hi,

    I've got a class that looks something like this:


    @Configurable
    public class ChangeQuantityTransaction extends AbstractTransaction
    {
    @Override
    @Transactional
  6. Use of @Repository vs xml, testing considerations?

    Hi,

    I've got a DAO that I'd declared in my applicationContext.xml like so:


    <bean id="userDao" class="mypackage.dao.impl.UserDaoSpring" />

    I read in the reference guide here that the...
  7. Solved!

    Davey, you've saved me!

    It's so obvious now but that did the trick. I think what happened was I was tinkering with SimpleJdbcTemplate which supports named parameters, and at some point I...
  8. The SQL generated by Spring looks exactly the...

    The SQL generated by Spring looks exactly the same as what I passed in:


    17:17:13,076 DEBUG core.JdbcTemplate - Executing prepared SQL update
    17:17:13,087 DEBUG core.JdbcTemplate - Executing...
  9. Hi, Does anyone have any ideas about this? ...

    Hi,

    Does anyone have any ideas about this? I'm really stuck and the problem doesn't make sense to me, that using the MapSQLParameterSource fails but pulling the individual values out of it...
  10. SQLParameterSource causes "nvalid column type"...why?

    Hi,

    Java 6, Oracle 10g, Spring 3.0.5.

    I've got a simple delete query:


    JdbcTemplate jt = new JdbcTemplate(dataSource);
    String sqlStr = "DELETE FROM mytab WHERE someval = :someval";...
  11. Is it possible to use Oracle's sysdate with SimpleJdbcInsert?

    Hi,

    I'm slowly changing our database access calls to use Spring JDBC instead of straight JDBC calls (Connections and Statements). We're using Oracle 10g.

    I have an insert query that...
  12. Replies
    1
    Views
    1,159

    I posted the same question at Stack Overflow and...

    I posted the same question at Stack Overflow and the answer came back "no". Referencing that here in case someone else ever needs the answer:
    ...
  13. Solved!

    I've been around long enough to know that when a lot of people haven't run into the same problem, then the problem is likely me.

    The question was impossible to answer given the information I...
  14. Replies
    1
    Views
    1,159

    Do I need to close a JNDI data source?

    Hi,

    If I get a data source this way:


    <bean id="dataSource" class="my.data.Source" destroy-method="close">
    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
    ...
  15. Error caused when destroy is called on loadTimeWeaver

    Hi,

    Spring 3.0.5.

    Whenever I undeploy my webapp I get a couple of stack traces and a dump to ajcore.blah blah.txt. I have debug turned on and this is the last entry:


    DEBUG...
  16. Thanks Martin, How then should I do a "like"...

    Thanks Martin,

    How then should I do a "like" query, such as:


    SELECT COUNT(*) FROM table WHERE columnval like 'happy%'

    I need to use wildcards in this particular instance, as it's...
  17. Any advantage to calling count(*) as a prepared statement?

    Hi,

    In my app I call


    SELECT COUNT(*) FROM table WHERE columnval=?

    Is there any advantage to making that a prepared statement, using PreparedStatementCreator?

    In general, does it...
  18. Replies
    0
    Views
    959

    Using Oracle DBMS_APPLICATION_INFO package

    Hi,

    We're switching from direct JDBC calls to using Spring JDBC. One of the things we do is to tag our connections with something like this:


    CallableStatement pstmt =...
Results 1 to 18 of 18