Difference between Model Class and Class generated in a Webservice

Asked

Viewed 99 times

0

I’m having trouble generating a webservice. I have my Lib with the model classes: Address, City and Customer. I also have a Lib with the DAO classes to control access to data for the model classes: Address, Clientedao, City.

In the Endereco.java class, I have two private attributes that are:

private Cidade cidade;
private Cliente cliente;

The problem is that when generating a Webservice that I use as a control between back and front end, the code generated for the Addressee class has the following aspect:

private lib.modelo.Cliente cliente;
private int cidade;

I can’t understand or find the "x" for this problem. I have tried to redo the classes, change the code generated by the webservice by hand without success.

Thank you!

1 answer

0

Problem has been solved.

What was missing was updating the . jar files from my apache server’s classpath.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.