use of org.finra.herd.model.api.xml.PartitionKeyGroupKey in project herd by FINRAOS.
the class PartitionKeyGroupServiceImpl method createPartitionKeyGroupFromEntity.
/**
* Creates the partition key group from the persisted entity.
*
* @param partitionKeyGroupEntity the partition key group entity
*
* @return the partition key group
*/
private PartitionKeyGroup createPartitionKeyGroupFromEntity(PartitionKeyGroupEntity partitionKeyGroupEntity) {
// Create the partition key group.
PartitionKeyGroup partitionKeyGroup = new PartitionKeyGroup();
PartitionKeyGroupKey partitionKeyGroupKey = new PartitionKeyGroupKey();
partitionKeyGroup.setPartitionKeyGroupKey(partitionKeyGroupKey);
partitionKeyGroupKey.setPartitionKeyGroupName(partitionKeyGroupEntity.getPartitionKeyGroupName());
return partitionKeyGroup;
}
Aggregations