I just came over the
Tuplizer interface introduced in 3.1. But the examples in the
documentation and
code reference didn't quite give me the grips on the topic.
Anyway I have a tough nut to crack which would be best described with a Offer- Salesman mapping. The classes could look like so
Code:
class Offer{
private double amount;
private Salesman salesman;
}
class Salesman{
private String ident;
private String name;
}
And let's now say that I want to persist Offer but Salesman should be retrived remotely and lazily. Is this possible by simply and extending PojoEntityTuplizer and overriding its constructor?