Skip to content

Instantly share code, notes, and snippets.

@gbadner
Created January 13, 2014 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbadner/8406958 to your computer and use it in GitHub Desktop.
Save gbadner/8406958 to your computer and use it in GitHub Desktop.
SelectGenerator diff
diff -r hibernate-core/src/main/java/org/hibernate/id/SelectGenerator.java ../hibernate-orm-metamodel-exact/hibernate-core/src/main/java/org/hibernate/id/SelectGenerator.java
26d25
<
37a37
> import org.hibernate.engine.spi.ValueInclusion;
84c84,85
< if ( persister.getEntityMetamodel().isNaturalIdentifierInsertGenerated() ) {
---
> ValueInclusion inclusion = persister.getPropertyInsertGenerationInclusions() [ naturalIdPropertyIndices[0] ];
> if ( inclusion != ValueInclusion.NONE ) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment