문제

Can I have a non default multiple argument constructor in toplink. For example

public class Employee {
   private String empId;
   public Employee(String empId) {
      this.empId = empId;
   }
}
도움이 되었습니까?

해결책

Yes, however a default constructor must still be available for toplink as well. Toplink uses the default constructor and setters/properties to initialize your object.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top