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


import eu.nimble.core.infrastructure.identity.repository.PaymentMeansRepository;
import eu.nimble.service.model.ubl.commonaggregatecomponents.PaymentMeansType;
import io.swagger.annotations.Api;
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.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
package eu.nimble.core.infrastructure.identity.system.ubl;


/**
 * Created by Johannes Innerbichler on 28/06/17.
 */
@RequestMapping(value = "/payment-means", produces = MediaType.APPLICATION_JSON_VALUE)
@Api(basePath = "/payment-means", value = "Payment Means", description = "Operations with Payment Means", produces = "application/json")
@RestController
public class PaymentMeansController {

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


// Path: identity-service/src/main/java/eu/nimble/core/infrastructure/identity/system/ubl/PaymentMeansController.java
import eu.nimble.core.infrastructure.identity.repository.PaymentMeansRepository;
import eu.nimble.service.model.ubl.commonaggregatecomponents.PaymentMeansType;
import io.swagger.annotations.Api;
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.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

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


/**
 * Created by Johannes Innerbichler on 28/06/17.
 */
@RequestMapping(value = "/payment-means", produces = MediaType.APPLICATION_JSON_VALUE)
@Api(basePath = "/payment-means", value = "Payment Means", description = "Operations with Payment Means", produces = "application/json")
@RestController
public class PaymentMeansController {

    @Autowired
    private PaymentMeansRepository paymentMeansRepository;