|
It is currently Sat May 25, 2013 8:25 am
|
View unanswered posts | View active topics
 |
Page 1 of 1
|
[ 2 posts ] |
|
| Author |
Message |
|
chris58
|
Post subject: Use in a web service? Posted: Tue Mar 29, 2011 9:44 am |
|
Joined: Tue Mar 29, 2011 9:40 am Posts: 3
|
|
Hi!
I've used this great tool to design a database and that works well. But I have to expose the classes through a web service. Problem is, that java.util.List and java.util.Set are not part of JAX RPC and I get complains about serialization when trying to create a web service in Eclipse. The generated code of a class Company to retrieve the employees is: public java.util.Set<Person> getEmployee() { return this.employee; } Is it possible to change this to s.th. like public Person[] getEmployee() { return this.employee; }
I'm a bit new to Hibernate, UML, web services and Eclipse. If anybody could point me into the right direction of how to solve this problem, I would be very thankful.
Christian
|
|
| |
|
 |
|
lars
|
Post subject: Re: Use in a web service? Posted: Tue Mar 29, 2011 9:51 am |
|
Joined: Tue Apr 10, 2007 4:42 pm Posts: 619 Location: Uppsala, Sweden
|
|
Hi,
I'm afraid such detailed configuration of the generated code is not possible (yet). But you can modify the generated methods manually if you remove the @generated tags.
/Lars
|
|
| |
|
 |
 |
Page 1 of 1
|
[ 2 posts ] |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|