Results 1 to 7 of 7

Thread: JdbcTemplate - Best way to fill up Business VALUE OBJECT

  1. #1
    Join Date
    Aug 2007
    Posts
    4

    Question JdbcTemplate - Best way to fill up Business VALUE OBJECT

    Hello All,
    Can anyone tell me the best way to get the data and fill up my Business Value objects using JdbcTemplate

    Method i am following is.
    1. Wire and get the handle to JdbcTemplate
    2. use
    this.jdbcTemplate.query(queryBuffer.toString(), bindingValues, new RowMapperImplementedClass());
    3. RowMapperImplementedClass implements RowMapper
    4. This class will implement mapRow method

    IS THERE ANY BETTER WAY OF DOING THIS.. My requirement is
    1. Use JdbcTemplate
    2. Keep the query outside in a xml
    3. Dont have to code for setting values back in VO....

    I am very new to the Spring/Hibernate world..
    Please help...
    thanks in advance
    - Prasad -

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  3. #3
    Join Date
    Aug 2007
    Posts
    4

    Default

    Hello Karl,
    Thanks for quick turn around.
    Well, I did take a look at that.

    Is that class already included in the realease 2.0.6? If not then should take the source of the same and include the same in my code?

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Not in my 2.0.6 version .

    You could always grap the code mentioned in the other thread and use it in your own project.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  5. #5
    Join Date
    Aug 2007
    Posts
    4

    Default

    Hey,
    Thanks once again.
    I can do that but do you see any reason as to why it has not been included in the main stream build

  6. #6
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    The main stream build contains only bugfixes (2.0.x) new functionality is mainly going into 2.1. I haven't checked the newest milestone/nightly of 2.1 but you might find it in there. Most of the time the milestone release are very good and are quite usable.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  7. #7
    Join Date
    Aug 2007
    Posts
    4

    Default

    Ok. Thanks... I am picking up Revision 1.4. Is that rite?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •