[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3735?page=c...
]
tenwit commented on HHH-3735:
-----------------------------
Workaround found, briefly described in the above thread. If there was a way to get at the
sql-insert value from a Generator class (via a Persister or SessionImplementor, I guess?),
then the configurable generator that I suggest in my workaround wouldn't be needed,
and the workaround would be good enough for me to submit as a new (and reasonably useful)
generator.
Allow use of sql-insert element with PostInsertIdentifierGenerators
-------------------------------------------------------------------
Key: HHH-3735
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3735
Project: Hibernate Core
Issue Type: Improvement
Components: core
Reporter: tenwit
Priority: Minor
When implementing PostInsertIdentifierGenerators, there is no way to force hibernate to
continue to use the "normal" insert SQL, it always uses the
sqlIdentityInsertString (gleaned from AbstractEntityPersister and
AbstractSaveEventListener). If the rule to generate the identifier after the insert was
separated from the rule to use the identityInsert SQL string, achieving what was requested
in [this forum
post|http://forum.hibernate.org/viewtopic.php?t=972746] would be easy
(hopefully).
http://forum.hibernate.org/viewtopic.php?t=972746
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira