public void map(boolean adapt) { Object val = disc.getMappingInfo().getValue(disc, adapt); if (val == null && !Modifier.isAbstract(disc.getClassMapping(). getDescribedType().getModifiers())) throw new MetaDataException(_loc.get("no-discrim-value", disc.getClassMapping())); // we set the value before mapping to use to calculate the template // column's java type disc.setValue(val); super.map(adapt); } }
public void map(boolean adapt) { Object val = disc.getMappingInfo().getValue(disc, adapt); if (val == null && !Modifier.isAbstract(disc.getClassMapping(). getDescribedType().getModifiers())) throw new MetaDataException(_loc.get("no-discrim-value", disc.getClassMapping())); // we set the value before mapping to use to calculate the template // column's java type disc.setValue(val); super.map(adapt); } }
public void map(boolean adapt) { Object val = disc.getMappingInfo().getValue(disc, adapt); if (val == null && !Modifier.isAbstract(disc.getClassMapping(). getDescribedType().getModifiers())) throw new MetaDataException(_loc.get("no-discrim-value", disc.getClassMapping())); // we set the value before mapping to use to calculate the template // column's java type disc.setValue(val); super.map(adapt); } }
public void map(boolean adapt) { Object val = disc.getMappingInfo().getValue(disc, adapt); if (val == null && !Modifier.isAbstract(disc.getClassMapping(). getDescribedType().getModifiers())) throw new MetaDataException(_loc.get("no-discrim-value", disc.getClassMapping())); // we set the value before mapping to use to calculate the template // column's java type disc.setValue(val); super.map(adapt); } }
public void map(boolean adapt) { Object val = disc.getMappingInfo().getValue(disc, adapt); if (val == null && !Modifier.isAbstract(disc.getClassMapping(). getDescribedType().getModifiers())) throw new MetaDataException(_loc.get("no-discrim-value", disc.getClassMapping())); // we set the value before mapping to use to calculate the template // column's java type disc.setValue(val); super.map(adapt); } }
public void map(boolean adapt) { // if a superclass maps the discriminator value, so should we. // otherwise assume it's calculated ClassMapping sup = disc.getClassMapping(). getJoinablePCSuperclassMapping(); for (; sup != null; sup = sup.getJoinablePCSuperclassMapping()) { if (sup.getDiscriminator().getValue() != null || sup.getDiscriminator().getStrategy() instanceof ValueMapDiscriminatorStrategy) { disc.setValue(disc.getMappingInfo().getValue(disc, adapt)); break; } } }
public void map(boolean adapt) { // if a superclass maps the discriminator value, so should we. // otherwise assume it's calculated ClassMapping sup = disc.getClassMapping(). getJoinablePCSuperclassMapping(); for (; sup != null; sup = sup.getJoinablePCSuperclassMapping()) { if (sup.getDiscriminator().getValue() != null || sup.getDiscriminator().getStrategy() instanceof ValueMapDiscriminatorStrategy) { disc.setValue(disc.getMappingInfo().getValue(disc, adapt)); break; } } }
public void map(boolean adapt) { // if a superclass maps the discriminator value, so should we. // otherwise assume it's calculated ClassMapping sup = disc.getClassMapping(). getJoinablePCSuperclassMapping(); for (; sup != null; sup = sup.getJoinablePCSuperclassMapping()) { if (sup.getDiscriminator().getValue() != null || sup.getDiscriminator().getStrategy() instanceof ValueMapDiscriminatorStrategy) { disc.setValue(disc.getMappingInfo().getValue(disc, adapt)); break; } } }
public void map(boolean adapt) { // if a superclass maps the discriminator value, so should we. // otherwise assume it's calculated ClassMapping sup = disc.getClassMapping(). getJoinablePCSuperclassMapping(); for (; sup != null; sup = sup.getJoinablePCSuperclassMapping()) { if (sup.getDiscriminator().getValue() != null || sup.getDiscriminator().getStrategy() instanceof ValueMapDiscriminatorStrategy) { disc.setValue(disc.getMappingInfo().getValue(disc, adapt)); break; } } }
public void map(boolean adapt) { // if a superclass maps the discriminator value, so should we. // otherwise assume it's calculated ClassMapping sup = disc.getClassMapping(). getJoinablePCSuperclassMapping(); for (; sup != null; sup = sup.getJoinablePCSuperclassMapping()) { if (sup.getDiscriminator().getValue() != null || sup.getDiscriminator().getStrategy() instanceof ValueMapDiscriminatorStrategy) { disc.setValue(disc.getMappingInfo().getValue(disc, adapt)); break; } } }