Timeline for Hibernate, id, oracle, sequence
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 22, 2017 at 15:41 | comment | added | Paul A. Trzyna | Please have a look at this example: developer-should-know.com/post/82479486933/… It shows how to implement a custome hibernate generator that retrieves the id post insert. | |
| S Nov 8, 2013 at 10:22 | history | suggested | Darrell Teague | CC BY-SA 3.0 | Corrected spelling of "DB" versus "BD", corrected language, made concise. |
| Nov 8, 2013 at 10:19 | review | Suggested edits | |||
| S Nov 8, 2013 at 10:22 | |||||
| Mar 16, 2011 at 22:04 | comment | added | jomaora | @kneethan Yes you can try the first approach. Let me know what kind of answer you have cause I have the feeling that Oracle bothers about the way you use theses annotations... I remember that I have no problem with MsSqlServer but with Oracle. | |
| Mar 16, 2011 at 21:53 | comment | added | kneethan | Thanks for your answer, but I'm going to use the first approach for not relying on trigger. so in entire application I can use the first approach and not worry about trigger or not trigger or sequence or not sequence. any thoughts? so My approach will be : ` @GenericGenerator(name = "generator", strategy = "increment") @Id @GeneratedValue(generator = "generator") | |
| Mar 16, 2011 at 21:52 | vote | accept | kneethan | ||
| Mar 16, 2011 at 21:48 | history | answered | jomaora | CC BY-SA 2.5 |