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