本文整理了Java中org.hibernate.mapping.Property.setInsertable()
方法的一些代码示例,展示了Property.setInsertable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.setInsertable()
方法的具体详情如下:
包路径:org.hibernate.mapping.Property
类名称:Property
方法名:setInsertable
暂无
代码示例来源:origin: hibernate/hibernate-orm
for (Property property : properties) {
Property clone = BinderHelper.shallowCopy( property );
clone.setInsertable( false );
clone.setUpdateable( false );
clone.setNaturalIdentifier( false );
synthProp.setPersistentClass( ownerEntity );
synthProp.setUpdateable( false );
synthProp.setInsertable( false );
synthProp.setValue( embeddedComp );
synthProp.setPropertyAccessorName( "embedded" );
代码示例来源:origin: hibernate/hibernate-orm
final SingularAttributeSource singularAttributeSource = (SingularAttributeSource) propertySource;
property.setInsertable( singularAttributeSource.isInsertable() );
property.setUpdateable( singularAttributeSource.isUpdatable() );
mappingDocument.getOrigin()
);
property.setInsertable( false );
代码示例来源:origin: hibernate/hibernate-orm
newProperty.setCascade( current.getCascade() );
newProperty.setValueGenerationStrategy( current.getValueGenerationStrategy() );
newProperty.setInsertable( false );
newProperty.setUpdateable( false );
newProperty.setMetaAttributes( current.getMetaAttributes() );
代码示例来源:origin: hibernate/hibernate-orm
property.setName( PropertyPath.IDENTIFIER_MAPPER_PROPERTY );
property.setUpdateable( false );
property.setInsertable( false );
property.setValue( mapper );
property.setPropertyAccessorName( "embedded" );
代码示例来源: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
property.setName( PropertyPath.IDENTIFIER_MAPPER_PROPERTY );
property.setUpdateable( false );
property.setInsertable( false );
property.setValue( mapper );
property.setPropertyAccessorName( "embedded" );
代码示例来源:origin: hibernate/hibernate-orm
prop.setLob( lob != null );
prop.setInsertable( insertable );
prop.setUpdateable( updatable );
代码示例来源:origin: org.hibernate/hibernate-annotations
for (Property property : properties) {
Property clone = BinderHelper.shallowCopy( property );
clone.setInsertable( false );
clone.setUpdateable( false );
clone.setNaturalIdentifier( false );
synthProp.setPersistentClass( ownerEntity );
synthProp.setUpdateable( false );
synthProp.setInsertable( false );
synthProp.setValue( embeddedComp );
synthProp.setPropertyAccessorName( "embedded" );
代码示例来源:origin: org.hibernate/hibernate-annotations
newProperty.setCascade( current.getCascade() );
newProperty.setGeneration( current.getGeneration() );
newProperty.setInsertable( false );
newProperty.setUpdateable( false );
newProperty.setMetaAttributes( current.getMetaAttributes() );
代码示例来源:origin: org.hibernate/hibernate-annotations
prop.setInsertable( insertable );
prop.setUpdateable( updatable );
OptimisticLock lockAnn = property != null ?
代码示例来源:origin: org.hibernate/hibernate-annotations
property.setNodeName( "id" );
property.setUpdateable( false );
property.setInsertable( false );
property.setValue( mapper );
property.setPropertyAccessorName( "embedded" );
代码示例来源: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: org.hibernate/hibernate-tools
public static Property makeProperty(
Table table,
String defaultCatalog,
String defaultSchema,
String propertyName,
Value value,
boolean insertable,
boolean updatable,
boolean lazy,
String cascade,
String propertyAccessorName,
ReverseEngineeringStrategy revengStrategy) {
log.debug("Building property " + propertyName);
Property prop = new Property();
prop.setName(propertyName);
prop.setValue(value);
prop.setInsertable(insertable);
prop.setUpdateable(updatable);
prop.setLazy(lazy);
prop.setCascade(cascade==null?"none":cascade);
prop.setPropertyAccessorName(propertyAccessorName==null?"property":propertyAccessorName);
MetaAttributesBinder.bindMetaAttributes(
prop,
revengStrategy,
table,
defaultCatalog,
defaultSchema);
return prop;
}
代码示例来源:origin: hibernate/hibernate-tools
public static Property makeProperty(
Table table,
String defaultCatalog,
String defaultSchema,
String propertyName,
Value value,
boolean insertable,
boolean updatable,
boolean lazy,
String cascade,
String propertyAccessorName,
ReverseEngineeringStrategy revengStrategy) {
log.debug("Building property " + propertyName);
Property prop = new Property();
prop.setName(propertyName);
prop.setValue(value);
prop.setInsertable(insertable);
prop.setUpdateable(updatable);
prop.setLazy(lazy);
prop.setCascade(cascade==null?"none":cascade);
prop.setPropertyAccessorName(propertyAccessorName==null?"property":propertyAccessorName);
MetaAttributesBinder.bindMetaAttributes(
prop,
revengStrategy,
table,
defaultCatalog,
defaultSchema);
return prop;
}
代码示例来源:origin: com.manydesigns/portofino-database
prop.setPropertyAccessorName(mappings.getDefaultAccess());
prop.setInsertable(false);
prop.setUpdateable(false);
代码示例来源:origin: org.grails/grails-hibernate
prop.setInsertable(false);
prop.setUpdateable(false);
} else {
prop.setInsertable(getInsertableness(grailsProperty));
prop.setUpdateable(getUpdateableness(grailsProperty));
代码示例来源: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/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;
}
内容来源于网络,如有侵权,请联系作者删除!