public BusinessObjectFormatEntity createBusinessObjectFormatEntity(boolean includeAttributeDefinition){
  BusinessObjectFormatEntity businessObjectFormatEntity=new BusinessObjectFormatEntity();
  businessObjectFormatEntity.setBusinessObjectDefinition(businessObjectDefinitionDaoTestHelper.createBusinessObjectDefinition());
  businessObjectFormatEntity.setDescription("test");
  businessObjectFormatEntity.setFileType(fileTypeDaoTestHelper.createFileTypeEntity());
  businessObjectFormatEntity.setBusinessObjectFormatVersion(0);
  businessObjectFormatEntity.setLatestVersion(true);
  businessObjectFormatEntity.setUsage("PRC");
  businessObjectFormatEntity.setPartitionKey("testPartitionKey");
  if (includeAttributeDefinition) {
    List<BusinessObjectDataAttributeDefinitionEntity> attributeDefinitionEntities=new ArrayList<>();
    businessObjectFormatEntity.setAttributeDefinitions(attributeDefinitionEntities);
    BusinessObjectDataAttributeDefinitionEntity attributeDefinitionEntity=new BusinessObjectDataAttributeDefinitionEntity();
    attributeDefinitionEntities.add(attributeDefinitionEntity);
    attributeDefinitionEntity.setBusinessObjectFormat(businessObjectFormatEntity);
    attributeDefinitionEntity.setName(AbstractDaoTest.ATTRIBUTE_NAME_1_MIXED_CASE);
  }
  return businessObjectFormatDao.saveAndRefresh(businessObjectFormatEntity);
}

public BusinessObjectFormatEntity createBusinessObjectFormatEntity ( boolean includeAttributeDefinition ) { BusinessObjectFormatEntity businessObjectFormatEntity = new BusinessObjectFormatEntity ( ) ; businessObjectFormatEntity . setBusinessObjectDefinition ( businessObjectDefinitionDaoTestHelper . createBusinessObjectDefinition ( ) ) ; businessObjectFormatEntity . setDescription ( "test" ) ; businessObjectFormatEntity . setFileType ( fileTypeDaoTestHelper . createFileTypeEntity ( ) ) ; businessObjectFormatEntity . setBusinessObjectFormatVersion ( 0 ) ; businessObjectFormatEntity . setLatestVersion ( true ) ; businessObjectFormatEntity . setUsage ( "PRC" ) ; businessObjectFormatEntity . setPartitionKey ( "testPartitionKey" ) ; if ( includeAttributeDefinition ) { List < BusinessObjectDataAttributeDefinitionEntity > attributeDefinitionEntities = new ArrayList < > ( ) ; businessObjectFormatEntity . setAttributeDefinitions ( attributeDefinitionEntities ) ; BusinessObjectDataAttributeDefinitionEntity attributeDefinitionEntity = new BusinessObjectDataAttributeDefinitionEntity ( ) ; attributeDefinitionEntities . add ( attributeDefinitionEntity ) ; attributeDefinitionEntity . setBusinessObjectFormat ( businessObjectFormatEntity ) ; attributeDefinitionEntity . setName ( AbstractDaoTest . ATTRIBUTE_NAME_1_MIXED_CASE ) ; } return businessObjectFormatDao . saveAndRefresh ( businessObjectFormatEntity ) ; }
creates and persists a new business object format entity .
