Article - CS173882
Compile errors "GeneratedProperty cannot be resolved to a type" and "The method initialize() is undefined for the type Pet" for Pet.java in Windchill PDMLink 10.0
Modified: 20-Dec-2017
Applies To
- Windchill PDMLink 10.0
- Windchill PDMLink 10.2
Description
- Compile errors "GeneratedProperty cannot be resolved to a type" and "The method initialize() is undefined for the type Pet" for Pet.java in Windchill PDMLink 10.0
package ext.company.demo;
...
import com.ptc.windchill.annotations.metadata.GenAsPersistable;
@GenAsPersistable(superClass=WTObject.class, interfaces={ContentHolder.class, Ownable.class}
, properties={@GeneratedProperty()})
public class Pet extends _Pet {
....
public static Pet newPet() throws WTException {
Pet instance = new Pet();
instance.newPet();
return instance;
}
}
This is a printer-friendly version of Article 173882 and may be out of date. For the latest version click CS173882