org.hibernate.mapping.Property.setOptional()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(7.8k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中org.hibernate.mapping.Property.setOptional()方法的一些代码示例,展示了Property.setOptional()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.setOptional()方法的具体详情如下:
包路径:org.hibernate.mapping.Property
类名称:Property
方法名:setOptional

Property.setOptional介绍

暂无

代码示例

代码示例来源:origin: hibernate/hibernate-orm

attribute.setOptional( secondaryTableJoin.isOptional() );
attribute.setOptional( secondaryTableJoin.isOptional() );
attribute.setOptional( secondaryTableJoin.isOptional() );
attribute.setOptional( secondaryTableJoin.isOptional() );

代码示例来源:origin: hibernate/hibernate-orm

newProperty.setNaturalIdentifier( false );
newProperty.setOptional( false );
newProperty.setPersistentClass( current.getPersistentClass() );
newProperty.setPropertyAccessorName( current.getPropertyAccessorName() );

代码示例来源:origin: hibernate/hibernate-orm

/**
 * create a property copy reusing the same value
 */
public static Property shallowCopy(Property property) {
  Property clone = new Property();
  clone.setCascade( property.getCascade() );
  clone.setInsertable( property.isInsertable() );
  clone.setLazy( property.isLazy() );
  clone.setName( property.getName() );
  clone.setNaturalIdentifier( property.isNaturalIdentifier() );
  clone.setOptimisticLocked( property.isOptimisticLocked() );
  clone.setOptional( property.isOptional() );
  clone.setPersistentClass( property.getPersistentClass() );
  clone.setPropertyAccessorName( property.getPropertyAccessorName() );
  clone.setSelectable( property.isSelectable() );
  clone.setUpdateable( property.isUpdateable() );
  clone.setValue( property.getValue() );
  return clone;
}

代码示例来源:origin: hibernate/hibernate-orm

prop.setOptional( optional );
if ( BinderHelper.isEmptyAnnotationValue( mappedBy ) ) {

代码示例来源:origin: org.hibernate/hibernate-annotations

newProperty.setNaturalIdentifier( false );
newProperty.setOptional( false );
newProperty.setPersistentClass( current.getPersistentClass() );
newProperty.setPropertyAccessorName( current.getPropertyAccessorName() );

代码示例来源:origin: org.hibernate/hibernate-annotations

/**
 * create a property copy reusing the same value
 */
public static Property shallowCopy(Property property) {
  Property clone = new Property();
  clone.setCascade( property.getCascade() );
  clone.setInsertable( property.isInsertable() );
  clone.setLazy( property.isLazy() );
  clone.setName( property.getName() );
  clone.setNodeName( property.getNodeName() );
  clone.setNaturalIdentifier( property.isNaturalIdentifier() );
  clone.setOptimisticLocked( property.isOptimisticLocked() );
  clone.setOptional( property.isOptional() );
  clone.setPersistentClass( property.getPersistentClass() );
  clone.setPropertyAccessorName( property.getPropertyAccessorName() );
  clone.setSelectable( property.isSelectable() );
  clone.setUpdateable( property.isUpdateable() );
  clone.setValue( property.getValue() );
  return clone;
}

代码示例来源:origin: hibernate/hibernate

Property prop = createProperty( value, propertyName, persistentClass
  .getEntityName(), subnode, mappings, inheritedMetas );
prop.setOptional( join.isOptional() );
join.addProperty( prop );

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

newProperty.setNaturalIdentifier( false );
newProperty.setOptional( false );
newProperty.setPersistentClass( current.getPersistentClass() );
newProperty.setPropertyAccessorName( current.getPropertyAccessorName() );

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

newProperty.setNaturalIdentifier( false );
newProperty.setOptional( false );
newProperty.setPersistentClass( current.getPersistentClass() );
newProperty.setPropertyAccessorName( current.getPropertyAccessorName() );

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

Property prop = createProperty( value, propertyName, persistentClass
  .getEntityName(), subnode, mappings, inheritedMetas );
prop.setOptional( join.isOptional() );
join.addProperty( prop );

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

Property prop = createProperty( value, propertyName, persistentClass
  .getEntityName(), subnode, mappings, inheritedMetas );
prop.setOptional( join.isOptional() );
join.addProperty( prop );

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

Property prop = createProperty( value, propertyName, persistentClass
  .getEntityName(), subnode, mappings, inheritedMetas );
prop.setOptional( join.isOptional() );
join.addProperty( prop );

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

newProperty.setNaturalIdentifier( false );
newProperty.setOptional( false );
newProperty.setPersistentClass( current.getPersistentClass() );
newProperty.setPropertyAccessorName( current.getPropertyAccessorName() );

代码示例来源:origin: org.grails/grails-datastore-gorm-hibernate-core

);
prop.setPropertyAccessorName( accessType.getType() );
prop.setOptional(grailsProperty.isNullable());

代码示例来源:origin: org.hibernate.orm/hibernate-core

public Property shallowCopy() {
    Property clone = new Property( context );
    clone.setCascade( getCascade() );
    clone.setInsertable( isInsertable() );
    clone.setLazy( isLazy() );
    clone.setName( getName() );
    clone.setNaturalIdentifier( isNaturalIdentifier() );
    clone.setOptimisticLocked( isOptimisticLocked() );
    clone.setOptional( isOptional() );
    clone.setPersistentClass( (PersistentClass) getEntity() );
    clone.setPropertyAccessorName( getPropertyAccessorName() );
    clone.setSelectable( isSelectable() );
    clone.setUpdateable( isUpdateable() );
    clone.setValue( getValue() );
    return clone;
  }
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

/**
 * create a property copy reusing the same value
 */
public static Property shallowCopy(Property property) {
  Property clone = new Property();
  clone.setCascade( property.getCascade() );
  clone.setInsertable( property.isInsertable() );
  clone.setLazy( property.isLazy() );
  clone.setName( property.getName() );
  clone.setNaturalIdentifier( property.isNaturalIdentifier() );
  clone.setOptimisticLocked( property.isOptimisticLocked() );
  clone.setOptional( property.isOptional() );
  clone.setPersistentClass( property.getPersistentClass() );
  clone.setPropertyAccessorName( property.getPropertyAccessorName() );
  clone.setSelectable( property.isSelectable() );
  clone.setUpdateable( property.isUpdateable() );
  clone.setValue( property.getValue() );
  return clone;
}

代码示例来源:origin: org.hibernate.orm/hibernate-core

newProperty.setNaturalIdentifier( false );
newProperty.setOptional( false );
newProperty.setPersistentClass( (PersistentClass) current.getEntity() );
newProperty.setPropertyAccessorName( current.getPropertyAccessorName() );

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

/**
 * create a property copy reusing the same value
 */
public static Property shallowCopy(Property property) {
  Property clone = new Property();
  clone.setCascade( property.getCascade() );
  clone.setInsertable( property.isInsertable() );
  clone.setLazy( property.isLazy() );
  clone.setName( property.getName() );
  clone.setNodeName( property.getNodeName() );
  clone.setNaturalIdentifier( property.isNaturalIdentifier() );
  clone.setOptimisticLocked( property.isOptimisticLocked() );
  clone.setOptional( property.isOptional() );
  clone.setPersistentClass( property.getPersistentClass() );
  clone.setPropertyAccessorName( property.getPropertyAccessorName() );
  clone.setSelectable( property.isSelectable() );
  clone.setUpdateable( property.isUpdateable() );
  clone.setValue( property.getValue() );
  return clone;
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

/**
 * create a property copy reusing the same value
 */
public static Property shallowCopy(Property property) {
  Property clone = new Property();
  clone.setCascade( property.getCascade() );
  clone.setInsertable( property.isInsertable() );
  clone.setLazy( property.isLazy() );
  clone.setName( property.getName() );
  clone.setNodeName( property.getNodeName() );
  clone.setNaturalIdentifier( property.isNaturalIdentifier() );
  clone.setOptimisticLocked( property.isOptimisticLocked() );
  clone.setOptional( property.isOptional() );
  clone.setPersistentClass( property.getPersistentClass() );
  clone.setPropertyAccessorName( property.getPropertyAccessorName() );
  clone.setSelectable( property.isSelectable() );
  clone.setUpdateable( property.isUpdateable() );
  clone.setValue( property.getValue() );
  return clone;
}

代码示例来源:origin: org.grails/grails-hibernate

prop.setOptional(grailsProperty.isOptional());

相关文章

微信公众号

最新文章

更多