File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
hibernate-core/src/main/java/org/hibernate Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ public interface MetadataBuilder {
245
245
246
246
/**
247
247
* For entities which do not explicitly say, should we force discriminators into
248
- * SQL selects? The (historical) default is {@code false}
248
+ * SQL selects? The (historical) default is {@code false}.
249
249
* <p>
250
250
* Its default is defined by the {@value org.hibernate.cfg.AvailableSettings#FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT}
251
251
* setting if using property-based configuration.
Original file line number Diff line number Diff line change @@ -507,7 +507,17 @@ public interface MappingSettings {
507
507
String TRANSFORM_HBM_XML_FEATURE_HANDLING = "hibernate.transform_hbm_xml.unsupported_feature_handling" ;
508
508
509
509
/**
510
+ * Specifies that Hibernate should always restrict by discriminator values in
511
+ * SQL {@code select} statements, even when querying the root entity of an
512
+ * entity inheritance hierarchy.
513
+ * <p>
514
+ * By default, Hibernate only restricts by discriminator values when querying
515
+ * a subtype, or when the root entity is explicitly annotated
516
+ * {@link org.hibernate.annotations.DiscriminatorOptions#force
517
+ * DiscriminatorOptions(force=true)}.
518
+ *
510
519
* @see org.hibernate.boot.MetadataBuilder#enableImplicitForcingOfDiscriminatorsInSelect
520
+ * @see org.hibernate.annotations.DiscriminatorOptions#force
511
521
*
512
522
* @settingDefault {@code false}
513
523
*/
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ public int getSubclassSpan() {
251
251
*/
252
252
public List <Subclass > getSubclasses () {
253
253
@ SuppressWarnings ("unchecked" )
254
- List <Subclass >[] subclassLists = new List [subclasses .size () + 1 ];
254
+ final List <Subclass >[] subclassLists = new List [subclasses .size () + 1 ];
255
255
int j ;
256
256
for (j = 0 ; j < subclasses .size (); j ++) {
257
257
subclassLists [j ] = subclasses .get (j ).getSubclasses ();
You can’t perform that action at this time.
0 commit comments