Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@SelectKey annotation #10

Closed
GoogleCodeExporter opened this issue Mar 17, 2015 · 8 comments
Closed

@SelectKey annotation #10

GoogleCodeExporter opened this issue Mar 17, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

When trying @Insert annotation I found out, that there is no mean how to
specify primary key conciliation. Something like @SelectKey would be
necessary but such annotation doesn't exist. This means, that for
annotation based approach the only way are autogenerated keys (usable only
in case of few database engines) and @Option annotation with keyProperty
attribute set.

Original issue reported on code.google.com by clinton....@gmail.com on 17 May 2010 at 1:33

@GoogleCodeExporter
Copy link
Author

Reporter:    Jan Novotný

Original comment by clinton....@gmail.com on 17 May 2010 at 1:34

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Original comment by clinton....@gmail.com on 17 May 2010 at 3:17

  • Added labels: Type-Feature, Priority-Low, Version-Release3.x, Component-SqlMaps
  • Removed labels: Type-Enhancement, Priority-Medium

@GoogleCodeExporter
Copy link
Author

Original comment by clinton....@gmail.com on 2 Jun 2010 at 4:44

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

See this related question: 
http://stackoverflow.com/questions/4283159/howto-return-ids-on-inserts-with-myba
tis-with-annotations

Original comment by ron.gr...@gmail.com on 26 Nov 2010 at 7:07

@GoogleCodeExporter
Copy link
Author

Original comment by jeffgbut...@gmail.com on 14 Dec 2010 at 8:25

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Fixed in SVN.  See some examples here:

http://mybatis.googlecode.com/svn/trunk/src/test/java/org/apache/ibatis/submitte
d/selectkey/

Feel free to reopen if you encounter any difficulties.

Original comment by jeffgbut...@gmail.com on 15 Dec 2010 at 12:38

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by jeffgbut...@gmail.com on 26 Dec 2010 at 3:24

  • Added labels: Target-Release3.0.4

@GoogleCodeExporter
Copy link
Author

Issue 184 has been merged into this issue.

Original comment by jeffgbut...@gmail.com on 29 Dec 2010 at 11:43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant