Results 1 to 3 of 3

Thread: Spring Data JDBC Oracle

  1. #1

    Default Spring Data JDBC Oracle

    I watched the Spring Data webinar on Nov 16. In the webinar the presenter mentioned that there with the new Spring Data JDBC Oracle extension there is an better way to insert a record into an Oracle table where the primary key value is provided by an Oracle sequence and to get the primary key value back.

    I've looked through the JavaDoc and documentation for the release of Spring Data JDBC (http://www.springsource.org/spring-data/jdbc-extensions) and cannot find more information or an example of this technique.

  2. #2
    Join Date
    Aug 2004
    Posts
    1,104

    Default

    Both QueryDslJdbcTemplate [1] and SimpleJdbcInsert [2] have support for accessing the generated key. Not sure what was referred to in the webinar, but take a look at these classes to see if they work for you.

    [1] http://static.springsource.org/sprin...cTemplate.html
    [2] http://static.springsource.org/sprin...dbcInsert.html
    Thomas Risberg
    SpringSource by Pivotal
    http://www.springsource.org

  3. #3

    Default

    Thanks for share it with us.

Posting Permissions

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