0
votes

I have some service methods which return entities that are not implemented yet. For example, I have an interface called IUser and some classes that implemented this interface such as GuestUser and AdminUser.

All entity classes are well-defined already and I want to use their jar files without manipulating them.

My problem is when I wanted to define ProxyFor IUser.class in client-side entity and to call service methods that their return type are IUser. While calling these methods I get the following error: The domain type com.bis.entity.security.GuestUser cannot be sent to the client.

Is there any way to call methods that deal with interfaces in RequestFactory or do I have to change all the service methods to utilize class entitis?

1

1 Answers