Hi,
i've got a problem with generalization in gwt and proxy objects. My
abstract class
@PersistenceCapable
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public abstract class Person implements IsSerializable {
...
public void persist() {
...
}
@Persistent
private String name;
...
}
and my child class
@PersistenceCapable
public class Employee extends Person {
...
}
work fine with JUnit testing and JDO.
When I want do implement the user interface i am a little bit confused
when i write the proxy classes.
My first idea is to create the PersonProxy.class as usual and then
create a EmployeeProxy.class extending the PersonProxy.class and just
add the additional functions. But by doing it this way i get an error
(key name is not permitted to be set) when persisting an employee
object through the requestfactory.
My second problem is, how should i implement the requestContext
interfaces in the requestFactory. By now i've only implemented the
Person.class as a requestContext for persisting an employee. ( I am
still stuck with the first problem here, so I don't know if there is a
better solution ).
Thank you for any kind of help here,
greeting
Poe
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.