Results 1 to 3 of 3

Thread: What is the best way to get our Person into our User using spring jdbcTemplate

  1. #1
    Join Date
    Apr 2007
    Posts
    276

    Default What is the best way to get our Person into our User using spring jdbcTemplate

    Last night I posted this on stackoverflow. I probably should have asked it here. I have yet to get a response. I just want to know if there is a "best practice" for this. Does anyone have any thoughts or alternative suggestions? Thanks for any input.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,629

    Default

    The second option (using a join) is the best approach all the others are workarounds/hacks imho. PersonRowMapper (or whatever you use) doesn't matter where it comes from, I tend to make RowMappers top level classes in general.
    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

  3. #3
    Join Date
    Apr 2007
    Posts
    276

    Default Thanks!

    Sounds good. We will do it that way. Thanks Marten!

Tags for this Thread

Posting Permissions

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