以下は私のドメインクラスです
class Person {
String getName();
Vehicle getVehicle();
}
interface Vehicle {
String getCompanyName();
String getRegNo();
Point getParkingSpaceRequired();
}
abstract class AbstractVehicle {
}
class Motorcycle extends AbstractVehicle {
}
class Car extends AbstractVehicle {
}
PersonProxyをEntityProxyとして作成するのは簡単で、person.getName()に対して正常に機能していました。
VehicleProxyをValueProxyとして作成し、.with('vehicle')を使用してfire()を呼び出しましたが、エラーが発生します。
ドメインタイプcom....AbstractVehicle $$ EnhancerByCGLIB$$e86549b9をクライアントに送信できません。
PersonProxyでは@ProxyFor(value = Person.class、locator = PersonLocator.class)
を取得しましたVehicleProxyでは@ProxyFor(value = Vehicle.class)を取得しました
では、RequestFactoryでそのような継承を処理する方法は?
VehicleをValueProxyからEntityProxyに変更する必要がありますか?
次に、VehicleLocatorのメソッドを実装する方法は?