Customizing Payment
Posted: Mon Jan 07, 2013 7:46 am
Hi,
I'm trying the Customizing payment section in the broadleaf tutorials, am getting the following error while compiling,
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project site: Compilation failure
[ERROR] D:\Demo\eclipse-workspace\DemoSite\site\src\main\java\com\mycompany\payment\MyPaymentInfoType.java:[13,5] error: no suitable constructor found for PaymentInfoType(String)
[ERROR] -> [Help 1]
And my code is..
package com.mycompany.payment;
import org.broadleafcommerce.core.payment.service.type.PaymentInfoType;
public class MyPaymentInfoType extends PaymentInfoType {
private static final long serialVersionUID = 1L;
private String type;
private String friendlyType;
public static MyPaymentInfoType EMPLOYEE = new MyPaymentInfoType("EMPLOYEE");
public MyPaymentInfoType(String type) {
super(type);
}
public MyPaymentInfoType() {
//do nothing
}
}
Can anyone tell me the solution for this??
thanks !!!
I'm trying the Customizing payment section in the broadleaf tutorials, am getting the following error while compiling,
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project site: Compilation failure
[ERROR] D:\Demo\eclipse-workspace\DemoSite\site\src\main\java\com\mycompany\payment\MyPaymentInfoType.java:[13,5] error: no suitable constructor found for PaymentInfoType(String)
[ERROR] -> [Help 1]
And my code is..
package com.mycompany.payment;
import org.broadleafcommerce.core.payment.service.type.PaymentInfoType;
public class MyPaymentInfoType extends PaymentInfoType {
private static final long serialVersionUID = 1L;
private String type;
private String friendlyType;
public static MyPaymentInfoType EMPLOYEE = new MyPaymentInfoType("EMPLOYEE");
public MyPaymentInfoType(String type) {
super(type);
}
public MyPaymentInfoType() {
//do nothing
}
}
Can anyone tell me the solution for this??
thanks !!!