Announcement Announcement Module
Collapse
No announcement yet.
Spring Data JDBC Oracle Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      Thanks for share it with us.

      Comment

      Working...
      X