Dear All,
I’ve got Person class with 2 attribubes:
- name : String
- birthDate : Date
The birthDate attribute specification is as shown in the picture.
The Java code generator produces the following code:
package pl.ustawa;
import java.util.*;
public class Person {
private String name;
private java.util.Date birthDate;
public String getName() {
return this.name;
}
public void setName(String value) {
this.name = value;
}
public java.util.Date getBirthDate() {
return this.birthDate;
}
public void setBirthDate(java.util.Date value) {
this.birthDate = value;
}
}
Unfortunately Eclipse displays an error in the line 03:
The import java.util is never used
Is it possible to set up Java generator in VP:
- not to generate this import line in the code (line 03)
or - use short type name (just Date) for birthDate attribute (line 08 )
Best regards,
Sergio
person.png
birthDate.png