// Path: identity-service/src/main/java/eu/nimble/core/infrastructure/identity/repository/DeliveryTermsRepository.java
// public interface DeliveryTermsRepository extends PagingAndSortingRepository<DeliveryTermsType, Long> {
// 
//     @Modifying
//     @Transactional
//     @Query(value = "delete from delivery_terms_type where delivery_terms_party_type_hj_0 = ?1", nativeQuery = true)
//     void deleteByPartyID(Long partyID);
// }


import eu.nimble.core.infrastructure.identity.repository.DeliveryTermsRepository;
import eu.nimble.service.model.ubl.commonaggregatecomponents.DeliveryTermsType;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
package eu.nimble.core.infrastructure.identity.system.ubl;


@RestController
@RequestMapping("/delivery-terms")
public class DeliveryTermsController {

    @Autowired
// Path: identity-service/src/main/java/eu/nimble/core/infrastructure/identity/repository/DeliveryTermsRepository.java
// public interface DeliveryTermsRepository extends PagingAndSortingRepository<DeliveryTermsType, Long> {
// 
//     @Modifying
//     @Transactional
//     @Query(value = "delete from delivery_terms_type where delivery_terms_party_type_hj_0 = ?1", nativeQuery = true)
//     void deleteByPartyID(Long partyID);
// }


// Path: identity-service/src/main/java/eu/nimble/core/infrastructure/identity/system/ubl/DeliveryTermsController.java
import eu.nimble.core.infrastructure.identity.repository.DeliveryTermsRepository;
import eu.nimble.service.model.ubl.commonaggregatecomponents.DeliveryTermsType;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

package eu.nimble.core.infrastructure.identity.system.ubl;


@RestController
@RequestMapping("/delivery-terms")
public class DeliveryTermsController {

    @Autowired
    private DeliveryTermsRepository deliveryRepo;