Pregunta

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;
   }
}
¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top