本文整理了Java中org.hibernate.mapping.List.getIndex()
方法的一些代码示例,展示了List.getIndex()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。List.getIndex()
方法的具体详情如下:
包路径:org.hibernate.mapping.List
类名称:List
方法名:getIndex
暂无
代码示例来源:origin: hibernate/hibernate-orm
private void addSyntheticIndexProperty(List value, String propertyAccessorName, ClassAuditingData classAuditingData) {
final Value indexValue = value.getIndex();
if ( indexValue != null && indexValue.getColumnIterator().hasNext() ) {
final String indexColumnName = indexValue.getColumnIterator().next().getText();
if ( indexColumnName != null ) {
final PropertyAuditingData auditingData = new PropertyAuditingData(
indexColumnName,
propertyAccessorName,
ModificationStore.FULL,
RelationTargetAuditMode.AUDITED,
null,
null,
false,
true,
indexValue
);
classAuditingData.addPropertyAuditingData( indexColumnName, auditingData );
}
}
}
代码示例来源:origin: hibernate/hibernate-orm
final Column positionColumn = (Column) asList.getIndex().getColumnIterator().next();
assertThat( positionColumn.getName(), equalTo( "position" ) );
代码示例来源:origin: hibernate/hibernate-orm
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
代码示例来源:origin: org.hibernate.orm/hibernate-core
private void addSyntheticIndexProperty(List value, String propertyAccessorName, ClassAuditingData classAuditingData) {
final Value indexValue = value.getIndex();
if ( indexValue != null && !indexValue.getMappedColumns().isEmpty() ) {
final String indexColumnName = ( (MappedColumn) indexValue.getMappedColumns().get( 0 ) ).getText();
if ( indexColumnName != null ) {
final PropertyAuditingData auditingData = new PropertyAuditingData(
indexColumnName,
propertyAccessorName,
RelationTargetAuditMode.AUDITED,
RelationTargetNotFoundAction.DEFAULT,
null,
null,
false,
true,
indexValue
);
classAuditingData.addPropertyAuditingData( indexColumnName, auditingData );
}
}
}
代码示例来源:origin: org.hibernate/hibernate-annotations
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
代码示例来源:origin: hibernate/hibernate
ib.setSelectable( false );
ib.setCollectionRole( list.getRole() );
ib.setValue( list.getIndex() );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
代码示例来源:origin: org.hibernate.orm/hibernate-core
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
ib.setCollectionRole( list.getRole() );
ib.setEntityName( list.getOwner().getEntityName() );
ib.setValue( list.getIndex() );
referenced.addProperty( ib );
代码示例来源:origin: org.grails/grails-datastore-gorm-hibernate-core
ib.setValue(list.getIndex());
referenced.addProperty(ib);
代码示例来源:origin: org.grails/grails-hibernate
ib.setValue(list.getIndex());
referenced.addProperty(ib);
内容来源于网络,如有侵权,请联系作者删除!